Test protected page

This commit is contained in:
Eden Kirin
2024-02-06 19:01:49 +01:00
parent 4d9759c093
commit 8bafff716c
6 changed files with 163 additions and 13 deletions

View File

@ -57,6 +57,7 @@ func initRouter(app *fiber.App) {
app.Get("/login", handlers.Login)
app.Post("/login", handlers.LoginSubmit)
app.Get("/logout", handlers.Logout)
app.Get("/protected-page", handlers.ProtectedPage)
app.Static("/static", STATIC_PATH)
}