chore: add cache for resource

This commit is contained in:
Steven
2022-09-09 00:50:58 +08:00
parent ad462cec29
commit b1e6956441
6 changed files with 102 additions and 81 deletions

View File

@@ -56,9 +56,8 @@ func NewServer(profile *profile.Profile) *Server {
Profile: profile,
}
// Webhooks api skips auth checker.
webhookGroup := e.Group("/h")
s.registerWebhookRoutes(webhookGroup)
publicRouteGroup := e.Group("/h")
s.registerResourcePublicRoutes(publicRouteGroup)
apiGroup := e.Group("/api")
apiGroup.Use(func(next echo.HandlerFunc) echo.HandlerFunc {