Toggle light and dark modes + header color
This commit is contained in:
parent
d40bc51101
commit
b7f0d6f8b2
6 changed files with 118 additions and 10 deletions
3
main.go
3
main.go
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue