mirror of
https://github.com/Theodor-Springmann-Stiftung/lenz-web.git
synced 2026-03-21 13:55:30 +00:00
Minumum Working Example
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user