MCPcopy Create free account
hub / github.com/dnote/dnote / NewStatic

Function NewStatic

pkg/server/controllers/static.go:27–31  ·  view source on GitHub ↗

NewStatic creates a new Static controller.

(app *app.App, viewEngine *views.Engine)

Source from the content-addressed store, hash-verified

25
26// NewStatic creates a new Static controller.
27func NewStatic(app *app.App, viewEngine *views.Engine) *Static {
28 return &Static{
29 NotFoundView: viewEngine.NewView(app, views.Config{Title: "Not Found", Layout: "base"}, "static/not_found"),
30 }
31}
32
33// Static is a static controller
34type Static struct {

Callers 1

NewFunction · 0.85

Calls 1

NewViewMethod · 0.80

Tested by

no test coverage detected