feat: implement shortcut view analytics

This commit is contained in:
Steven
2023-07-10 22:57:29 +08:00
parent d866d5b53b
commit 0cceed51f8
9 changed files with 308 additions and 7 deletions

View File

@ -61,10 +61,10 @@ func NewServer(ctx context.Context, profile *profile.Profile, store *store.Store
}
}
apiGroup := e.Group("")
rootGroup := e.Group("")
// Register API v1 routes.
apiV1Service := apiv1.NewAPIV1Service(profile, store)
apiV1Service.Start(apiGroup, secret)
apiV1Service.Start(rootGroup, secret)
return s, nil
}