MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / getFileSystem

Function getFileSystem

frontend/frontend.go:47–53  ·  view source on GitHub ↗
(dir string)

Source from the content-addressed store, hash-verified

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 {
50 panic(err)
51 }
52 return http.FS(fDir)
53}
54
55type Frontend struct {
56}

Callers 1

FilesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected