Added session cookie and logout for admin
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user