Files
kgpz_web/controllers/controller.go
Simon Martens 0aec995441 Lots of stuff
2024-11-11 20:53:27 +01:00

13 lines
492 B
Go

package controller
import (
"net/http"
"githib.com/Theodor-Springmann-Stiftung/kgpz_web/app"
"githib.com/Theodor-Springmann-Stiftung/kgpz_web/templating"
)
// ControllerFunc is a function that get injected all dependencies and returns a http.HandlerFunc
// A controller is resposible for executing all the neccessary middlewares and rendering the HTML
type ControllerFunc func(kgpz *app.KGPZ, layouts *templating.LayoutRegistry, templates *templating.TemplateRegistry) http.HandlerFunc