Minumum Working Example

This commit is contained in:
Simon Martens
2026-02-20 14:53:05 +01:00
parent 8f5338c0b8
commit 5a00333266
8 changed files with 1169 additions and 6 deletions

View File

@@ -12,6 +12,7 @@ type Server struct {
server *echo.Echo
cfg app.Config
tmpl *template.Template
app *app.App
}
func NewServer(app *app.App) (*Server, error) {
@@ -19,10 +20,12 @@ func NewServer(app *app.App) (*Server, error) {
server: echo.New(),
cfg: app.Config(),
tmpl: app.Templates(),
app: app,
}
// INFO: Endpoint mapping here:
MapStatic(s.server)
MapEndpoints(s.server, s)
return s, nil
}