ci: add Gitea Actions workflows and placeholder tests
Some checks failed
CI / ci (push) Failing after 47s

This commit is contained in:
Cosmo
2026-03-01 00:05:08 +00:00
parent 2a50e50771
commit b91e67ac1d
6 changed files with 240 additions and 0 deletions

View File

@@ -71,6 +71,7 @@ func main() {
profileHandler := handler.NewProfileHandler(userRepo)
habitFreezeHandler := handler.NewHabitFreezeHandler(habitFreezeRepo, habitRepo)
savingsHandler := handler.NewSavingsHandler(savingsRepo)
interestHandler := handler.NewInterestHandler(db)
// Initialize middleware
authMiddleware := customMiddleware.NewAuthMiddleware(cfg.JWTSecret)
@@ -103,6 +104,9 @@ func main() {
r.Post("/auth/forgot-password", authHandler.ForgotPassword)
r.Post("/auth/reset-password", authHandler.ResetPassword)
// Internal routes (API key protected)
interestHandler.RegisterRoutes(r)
// Protected routes
r.Group(func(r chi.Router) {
r.Use(authMiddleware.Authenticate)