fix: I have no idea how pkger works

This commit is contained in:
ptrcnull 2020-11-16 22:56:03 +01:00
parent 771ab1d8c2
commit 87ed3936b0

5
app.go
View file

@ -8,6 +8,10 @@ import (
"github.com/markbates/pkger"
)
func init() {
pkger.Include("/templates")
}
type App struct {
Config Config
modules map[string]Module
@ -23,7 +27,6 @@ func (app *App) data(ctx *fiber.Ctx, d fiber.Map) fiber.Map {
"app": app,
"modules": app.modules,
"auth": app.authHandlers,
//"username": "ptrcnull",
}
for k, v := range d {
base[k] = v