mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-29 00:55:32 +00:00
Lots of stuff
This commit is contained in:
12
controllers/controller.go
Normal file
12
controllers/controller.go
Normal file
@@ -0,0 +1,12 @@
|
||||
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
|
||||
Reference in New Issue
Block a user