mirror of
https://github.com/aykhans/slash-e.git
synced 2025-07-06 21:22:36 +00:00
feat: implement redirector api
This commit is contained in:
@ -19,9 +19,13 @@ func NewAPIV1Service(profile *profile.Profile, store *store.Store) *APIV1Service
|
||||
}
|
||||
}
|
||||
|
||||
func (s *APIV1Service) Start(apiV1Group *echo.Group, secret string) {
|
||||
func (s *APIV1Service) Start(apiGroup *echo.Group, secret string) {
|
||||
apiV1Group := apiGroup.Group("/api/v1")
|
||||
s.registerSystemRoutes(apiV1Group)
|
||||
s.registerAuthRoutes(apiV1Group, secret)
|
||||
s.registerUserRoutes(apiV1Group)
|
||||
s.registerShortcutRoutes(apiV1Group)
|
||||
|
||||
redirectorGroup := apiGroup.Group("/o")
|
||||
s.registerRedirectorRoutes(redirectorGroup)
|
||||
}
|
||||
|
Reference in New Issue
Block a user