mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2026-02-04 10:35:30 +00:00
+ make IApp available in the controllers
This commit is contained in:
@@ -28,7 +28,8 @@ type PersonenPage struct {
|
||||
pagemodels.StaticPage
|
||||
}
|
||||
|
||||
func (p *PersonenPage) Setup(router *router.Router[*core.RequestEvent], app core.App, engine *templating.Engine) error {
|
||||
func (p *PersonenPage) Setup(router *router.Router[*core.RequestEvent], ia pagemodels.IApp, engine *templating.Engine) error {
|
||||
app := ia.Core()
|
||||
router.GET(URL_PERSONEN, func(e *core.RequestEvent) error {
|
||||
if e.Request.URL.Query().Get(PARAM_SEARCH) != "" {
|
||||
return p.SearchRequest(app, engine, e)
|
||||
|
||||
Reference in New Issue
Block a user