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:
@@ -40,7 +40,8 @@ type UserEditPage struct {
|
||||
pagemodels.StaticPage
|
||||
}
|
||||
|
||||
func (p *UserEditPage) Setup(router *router.Router[*core.RequestEvent], app core.App, engine *templating.Engine) error {
|
||||
func (p *UserEditPage) Setup(router *router.Router[*core.RequestEvent], ia pagemodels.IApp, engine *templating.Engine) error {
|
||||
app := ia.Core()
|
||||
rg := router.Group(URL_USER)
|
||||
rg.BindFunc(middleware.IsAdminOrUser())
|
||||
rg.GET(URL_USER_EDIT, p.GET(engine, app))
|
||||
|
||||
Reference in New Issue
Block a user