MCPcopy Index your code
hub / github.com/1Panel-dev/KubePi / setUpRootRoute

Method setUpRootRoute

internal/server/server.go:128–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126}
127
128func (e *KubePiServer) setUpRootRoute() {
129 e.app.Any("/", func(ctx *context.Context) {
130 ctx.Redirect("/kubepi")
131 })
132 c := swagger.Config{
133 URL: "/kubepi/swagger/doc.json",
134 }
135 e.app.Get("/kubepi/swagger/{any:path}", swagger.CustomWrapHandler(&c, swaggerFiles.Handler))
136 e.rootRoute = e.app.Party("/kubepi")
137}
138
139func (e *KubePiServer) setUpStaticFile() {
140 spaOption := iris.DirOptions{SPA: true, IndexName: "index.html"}

Callers 1

bootstrapMethod · 0.95

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected