Toggle light and dark modes + header color

This commit is contained in:
William Bouzourène 2025-01-17 00:05:34 +01:00
parent d40bc51101
commit b7f0d6f8b2
Signed by: bouzoure
SSH key fingerprint: SHA256:19MbXpLua4rUtk8tunMesD8KUKb91LXLHg8E/qTooww
6 changed files with 118 additions and 10 deletions

View file

@ -88,6 +88,9 @@ func main() {
app.Use(loggerMiddleware.New())
app.Use(helmet.New())
// Misc endpoints without auth
app.Post("/set-color-mode", controllers.SetColorMode)
// Security middlewares
app.Use(middlewares.SavedSessionMiddleware)
app.Use(middlewares.AuthMiddleware)