chore: fix some validation issues
This commit is contained in:
@@ -26,7 +26,7 @@ func Kickoff(logger *slog.Logger, env bootstrap.Environment, db *gorm.DB) {
|
||||
|
||||
if env.Authentication {
|
||||
slog.Debug("injecting authentication middleware") // only log when actually doign the thing it logs to do
|
||||
r.Use(middleware.AuthMiddleware())
|
||||
r.Use(middleware.AuthMiddleware(db))
|
||||
}
|
||||
|
||||
api := r.Group("/api")
|
||||
|
||||
Reference in New Issue
Block a user