Manage user account

This commit is contained in:
William Bouzourène 2025-01-05 14:44:05 +01:00
parent 749e179c32
commit 5adc01baff
4 changed files with 297 additions and 0 deletions

View file

@ -115,6 +115,12 @@ func main() {
app.Get("/totp/verify", controllers.TotpVerifyPage)
app.Post("/totp/verify", controllers.TotpVerifyPage)
// Account manage
app.Get("/account/manage", controllers.AccountManage)
app.Post("/account/manage", controllers.AccountManage)
app.Get("/account/totp", controllers.AccountTotp)
app.Post("/account/totp", controllers.AccountTotp)
// Admin: Sections
app.Get("/admin/sections", controllers.Sections)
app.Get("/admin/sections/:id<int;min(0)>", controllers.SectionShow)