Better licences page

This commit is contained in:
William Bouzourène 2025-01-17 13:53:59 +01:00
parent b7f0d6f8b2
commit e550278056
Signed by: bouzoure
SSH key fingerprint: SHA256:19MbXpLua4rUtk8tunMesD8KUKb91LXLHg8E/qTooww
5 changed files with 1219 additions and 1046 deletions

View file

@ -91,6 +91,10 @@ func main() {
// Misc endpoints without auth
app.Post("/set-color-mode", controllers.SetColorMode)
// Licences page
app.Use("/licences", middlewares.TemplatesMiddleware)
app.Get("/licences", controllers.Licences)
// Security middlewares
app.Use(middlewares.SavedSessionMiddleware)
app.Use(middlewares.AuthMiddleware)