ci: add Gitea Actions workflows and placeholder tests
Some checks failed
CI / ci (push) Failing after 47s
Some checks failed
CI / ci (push) Failing after 47s
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user