Public Lib

This commit is contained in:
Simon Martens
2025-03-23 21:19:12 +01:00
parent 52382a00e2
commit 66fedf4baf
7 changed files with 427 additions and 43 deletions

13
controllers/routes.go Normal file
View File

@@ -0,0 +1,13 @@
package controllers
import (
"github.com/Theodor-Springmann-Stiftung/lenz-web/helpers/middleware"
"github.com/Theodor-Springmann-Stiftung/lenz-web/server"
"github.com/Theodor-Springmann-Stiftung/lenz-web/views"
)
const ASSETS_URL = "/assets"
func Register(server server.Server) {
server.Server.Use(ASSETS_URL, middleware.StaticHandler(&views.StaticFS))
}