🚧 参数校验

This commit is contained in:
微凉
2021-03-07 21:51:26 +08:00
parent b677d6ad21
commit c0f50ffeff
5 changed files with 26 additions and 6 deletions

View File

@ -27,6 +27,8 @@ func InitApiRouter(engine *gin.Engine) {
apiV2.POST("/list", controllers.List)
apiV2.POST("/get", controllers.Get)
apiV2.POST("/office_preview", controllers.OfficePreview)
apiV2.POST("/local_search", controllers.LocalSearch)
apiV2.POST("/global_search", controllers.GlobalSearch)
}
engine.GET("/d/*file", controllers.Down)
engine.GET("/rebuild", controllers.RebuildTree)