We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 746323f commit 05b1416Copy full SHA for 05b1416
internal/core/routes.go
@@ -7,17 +7,23 @@ import (
7
)
8
9
func (c *CoreCommand) routes(e *gin.Engine) {
10
+ c.wizard(e)
11
c.shared(e)
12
c.protected(e)
13
}
14
-// Collection of authenticated endpoints
15
-func (c *CoreCommand) protected(e *gin.Engine) {
+// Collection of documented endpoints
16
+func (c *CoreCommand) wizard(e *gin.Engine) {
17
v1 := e.Group("/api/v1")
18
v1.GET("/swagger/index.html", ginSwagger.WrapHandler(
19
swaggerFiles.Handler,
20
ginSwagger.DefaultModelsExpandDepth(-1),
21
))
22
+}
23
+
24
+// Collection of authenticated endpoints
25
+func (c *CoreCommand) protected(e *gin.Engine) {
26
+ v1 := e.Group("/api/v1")
27
28
c.handlers.commonHandler.Router(v1.Group("/common"), c.handlers.middlewares)
29
0 commit comments