MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / WithStatic

Function WithStatic

pkg/web/web.go:111–115  ·  view source on GitHub ↗

WithStatic sets the mount and search paths for static assets.

(mount string, searchPaths ...string)

Source from the content-addressed store, hash-verified

109
110// WithStatic sets the mount and search paths for static assets.
111func WithStatic(mount string, searchPaths ...string) Option {
112 return func(o *options) {
113 o.staticMount, o.staticSearchPaths = mount, searchPaths
114 }
115}
116
117// WithRedirectToHost redirects all requests to this host.
118func WithRedirectToHost(target string) Option {

Callers 1

initWebMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected