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:
@@ -52,15 +52,16 @@ func (r *TextPage) SetText(text string) {
|
||||
r.Set(F_TEXT, text)
|
||||
}
|
||||
|
||||
func (r *TextPage) Up(app core.App, engine *templating.Engine) error {
|
||||
func (r *TextPage) Up(ia IApp, engine *templating.Engine) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (r *TextPage) Down(app core.App, engine *templating.Engine) error {
|
||||
func (r *TextPage) Down(ia IApp, engine *templating.Engine) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *TextPage) Setup(router *router.Router[*core.RequestEvent], app core.App, engine *templating.Engine) error {
|
||||
func (p *TextPage) Setup(router *router.Router[*core.RequestEvent], ia IApp, engine *templating.Engine) error {
|
||||
app := ia.Core()
|
||||
router.GET(p.URL, func(e *core.RequestEvent) error {
|
||||
data := make(map[string]interface{})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user