Hook up route

This commit is contained in:
Presley Pizzo
2022-10-14 21:30:27 +00:00
parent 2a8c1b33cf
commit f501786835
3 changed files with 6 additions and 8 deletions
+1
View File
@@ -469,6 +469,7 @@ func New(options *Options) *API {
apiKeyMiddleware,
)
r.Get("/", api.workspaces)
r.Get("/count", api.workspaceCount)
r.Route("/{workspace}", func(r chi.Router) {
r.Use(
httpmw.ExtractWorkspaceParam(options.Database),