Added session cookie and logout for admin

This commit is contained in:
2026-05-20 15:57:09 +02:00
parent 4d53a6b471
commit 93ca9ea33b
3 changed files with 86 additions and 1 deletions
+1
View File
@@ -40,6 +40,7 @@ func main() {
http.HandleFunc("/setup", handlers.Setup(tmpl.Lookup("setup.html")))
http.HandleFunc("/login", handlers.Login(tmpl.Lookup("login.html")))
http.HandleFunc("/logout", handlers.Logout())
log.Printf("Starting filehost on %s\n", cfg.Port)
log.Fatal(http.ListenAndServe(cfg.Port, nil))