MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / init

Function init

frontend/frontend.go:41–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41func init() {
42 iconType = mimetype.Detect(iconContent).String()
43 viteContentType = mimetype.Detect(viteContent).String()
44 server.SetIndexHtmlHandler(IndexHtml)
45 server.AddSystemPlugin(new(Frontend))
46}
47func getFileSystem(dir string) http.FileSystem {
48 fDir, err := fs.Sub(dist, path.Join("dist", dir))
49 if err != nil {

Callers 1

parseFormDataFunction · 0.50

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected