wip: recurring transactions
Some checks failed
Build Docker Image / Build-Docker-Image (push) Failing after 5m7s

This commit is contained in:
2025-05-20 23:18:16 +02:00
parent b27a2050a7
commit 8378123e66
15 changed files with 855 additions and 54 deletions

View File

@@ -116,13 +116,14 @@ func createHandler(d *sqlx.DB, serverSettings *types.Settings) http.Handler {
accountService := service.NewAccount(d, randomService, clockService, serverSettings)
treasureChestService := service.NewTreasureChest(d, randomService, clockService, serverSettings)
transactionService := service.NewTransaction(d, randomService, clockService, serverSettings)
transactionRecurringService := service.NewTransactionRecurring(d, randomService, clockService, serverSettings)
render := handler.NewRender()
indexHandler := handler.NewIndex(authService, render)
indexHandler := handler.NewIndex(render)
authHandler := handler.NewAuth(authService, render)
accountHandler := handler.NewAccount(accountService, authService, render)
treasureChestHandler := handler.NewTreasureChest(treasureChestService, authService, render)
transactionHandler := handler.NewTransaction(transactionService, accountService, treasureChestService, authService, render)
accountHandler := handler.NewAccount(accountService, render)
treasureChestHandler := handler.NewTreasureChest(treasureChestService, transactionRecurringService, render)
transactionHandler := handler.NewTransaction(transactionService, accountService, treasureChestService, render)
indexHandler.Handle(router)
accountHandler.Handle(router)