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

Method Api

frontend/frontend.go:82–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80}
81
82func (f *Frontend) Api() []pm3.Api {
83 return []pm3.Api{
84 pm3.CreateApiSimple(http.MethodGet, "/favicon.ico", func(ginCtx *gin.Context) {
85 ginCtx.Data(http.StatusOK, iconType, iconContent)
86 }),
87 pm3.CreateApiSimple(http.MethodGet, "/vite.svg", func(ginCtx *gin.Context) {
88 ginCtx.Data(http.StatusOK, viteContentType, viteContent)
89 }),
90 }
91}
92func (f *Frontend) Files() []pm3.FrontendFiles {
93 return []pm3.FrontendFiles{
94

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected