MCPcopy Create free account
hub / github.com/devfeel/dotweb / ServerFile

Method ServerFile

group.go:27–27  ·  view source on GitHub ↗

ServerFile registers a file server route with the given path and file root.

(path string, fileroot string)

Source from the content-addressed store, hash-verified

25 PUT(path string, h HttpHandle) RouterNode
26 // ServerFile registers a file server route with the given path and file root.
27 ServerFile(path string, fileroot string) RouterNode
28 // RegisterRoute registers a new route with the given HTTP method, path and handler.
29 RegisterRoute(method, path string, h HttpHandle) RouterNode
30 // SetNotFoundHandle sets a custom 404 handler for this group.

Callers 2

ServerFileMethod · 0.65
ServerFileMethod · 0.65

Implementers 1

xGroupgroup.go

Calls

no outgoing calls

Tested by

no test coverage detected