V0.6.2 docs openapi (#37)
All checks were successful
All checks were successful
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com> Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
This commit was merged in pull request #37.
This commit is contained in:
@@ -249,6 +249,11 @@ func (e *Engine) registerCoreSurfaces() {
|
||||
Title: "Welcome", Template: "surface-welcome", Auth: "authenticated",
|
||||
Layout: "single", Source: "core",
|
||||
},
|
||||
{
|
||||
ID: "docs", Route: "/docs/:section", AltRoutes: []string{"/docs"},
|
||||
Title: "Docs", Template: "surface-docs", Auth: "authenticated",
|
||||
Layout: "single", Source: "core",
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -361,6 +366,9 @@ func (e *Engine) RenderSurface(surfaceID string) gin.HandlerFunc {
|
||||
if section == "" && surfaceID == "team-admin" {
|
||||
section = "members"
|
||||
}
|
||||
if section == "" && surfaceID == "docs" {
|
||||
section = "GETTING-STARTED"
|
||||
}
|
||||
|
||||
e.Render(c, "base.html", PageData{
|
||||
Surface: surfaceID,
|
||||
|
||||
Reference in New Issue
Block a user