Login / logout

This commit is contained in:
Eden Kirin
2024-02-06 15:39:55 +01:00
parent 8ecfeb71e6
commit 75cded4054
12 changed files with 239 additions and 112 deletions

View File

@ -12,7 +12,7 @@ import (
const (
APPHOST string = "127.0.0.1"
APPPORT int = 8080
APPPORT int = 9000
STATIC_PATH string = "./static"
)
@ -56,6 +56,7 @@ func initRouter(app *fiber.App) {
app.Get("/", handlers.Home)
app.Get("/login", handlers.Login)
app.Post("/login", handlers.LoginSubmit)
app.Get("/logout", handlers.Logout)
interactiveGroup := app.Group("/interactive")
{