prompt 9
This commit is contained in:
@@ -16,6 +16,10 @@ func RegisterRoutes(app *fiber.App, store *session.Store, database *gorm.DB, cfg
|
||||
app.Use(httpmw.SessionStoreMiddleware(store))
|
||||
app.Use(httpmw.CurrentUserMiddleware(store, database))
|
||||
app.Use(httpmw.ConsumeFlash())
|
||||
app.Use(func(c *fiber.Ctx) error {
|
||||
httpmw.SetTemplateData(c, "BuildHash", cfg.BuildHash)
|
||||
return c.Next()
|
||||
})
|
||||
|
||||
authService, err := services.NewAuthService(database, cfg)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user