refactor: migrate resource to apiv1 (#1901)

This commit is contained in:
boojack
2023-07-06 00:01:40 +08:00
committed by GitHub
parent 5ea561af3d
commit 1fa9f162a5
15 changed files with 462 additions and 382 deletions

View File

@@ -34,4 +34,11 @@ func (s *APIV1Service) Register(rootGroup *echo.Group) {
s.registerTagRoutes(apiV1Group)
s.registerShortcutRoutes(apiV1Group)
s.registerStorageRoutes(apiV1Group)
s.registerResourceRoutes(apiV1Group)
publicGroup := rootGroup.Group("/o")
publicGroup.Use(func(next echo.HandlerFunc) echo.HandlerFunc {
return JWTMiddleware(s, next, s.Secret)
})
s.registerResourcePublicRoutes(publicGroup)
}