Skip to content

Commit b72ef2f

Browse files
committed
Group vs route to fix swagger
1 parent 784fb68 commit b72ef2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

enterprise/coderd/coderd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func New(ctx context.Context, options *Options) (*API, error) {
8585
r.Use(
8686
api.moonsEnabledMW,
8787
)
88-
r.Route("/", func(r chi.Router) {
88+
r.Group(func(r chi.Router) {
8989
r.Use(
9090
apiKeyMiddleware,
9191
)

0 commit comments

Comments
 (0)