MCPcopy Create free account
hub / github.com/vercel/examples / New

Function New

go/api/internal/handler/handler.go:18–20  ·  view source on GitHub ↗
(assets embed.FS)

Source from the content-addressed store, hash-verified

16}
17
18func New(assets embed.FS) *Handler {
19 return &Handler{assets: assets}
20}
21
22func (h *Handler) RegisterRoutes(mux *http.ServeMux) {
23 publicFS, _ := fs.Sub(h.assets, "public")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected