Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SecurityHeaders ¶
SecurityHeaders wraps an http.Handler to set standard security headers.
func SetupStaticFiles ¶
SetupStaticFiles registers the embedded SPA file server on the mux.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server wraps the internal Marmot API server for use by external modules.
func (*Server) RegisterRoutes ¶
RegisterRoutes registers all API routes on the given ServeMux.
Click to show internal directories.
Click to hide internal directories.