feat(webui): implement logout process
This commit is contained in:
parent
aef0b00fb9
commit
1292d189cf
5 changed files with 52 additions and 10 deletions
|
@ -15,6 +15,7 @@ func addRoutes(
|
|||
mux.Handle("GET /healthz", handleHealthz())
|
||||
mux.Handle("GET /login", session(handleLoginGET()))
|
||||
mux.Handle("POST /login", session(handleLoginPOST(db)))
|
||||
mux.Handle("GET /logout", session(requireLogin(handleLogoutGET(db))))
|
||||
mux.Handle("GET /static/", cache(http.FileServer(http.FS(staticFS))))
|
||||
mux.Handle("GET /", session(requireLogin(handleIndexGET())))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue