|
|
@@ -54,7 +54,7 @@ func InitRouter() *gin.Engine {
|
|
|
r.Use(CORSMiddleware())
|
|
|
// Swagger
|
|
|
if config.SerCfg.GetDebugMode() {
|
|
|
- docs.SwaggerInfo.BasePath = "/api"
|
|
|
+ docs.SwaggerInfo.BasePath = "/api" // v1.8.x 需要增加这一句,不然会404
|
|
|
r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
|
|
|
r.GET("/debug/log", other.LogList)
|
|
|
r.GET("/debug/log/view", other.LogView)
|