mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: drop unused redirectToLoginOnMe parameter (#10164)
The parameter seems to be vestigial from an earlier use of the middleware, but is always set to `false` in the code.
This commit is contained in:
@@ -269,7 +269,7 @@ func New(ctx context.Context, options *Options) (_ *API, err error) {
|
||||
apiKeyMiddleware,
|
||||
)
|
||||
r.Route("/{user}", func(r chi.Router) {
|
||||
r.Use(httpmw.ExtractUserParam(options.Database, false))
|
||||
r.Use(httpmw.ExtractUserParam(options.Database))
|
||||
r.Get("/", api.workspaceQuota)
|
||||
})
|
||||
})
|
||||
@@ -296,7 +296,7 @@ func New(ctx context.Context, options *Options) (_ *API, err error) {
|
||||
r.Use(
|
||||
api.autostopRequirementEnabledMW,
|
||||
apiKeyMiddleware,
|
||||
httpmw.ExtractUserParam(options.Database, false),
|
||||
httpmw.ExtractUserParam(options.Database),
|
||||
)
|
||||
|
||||
r.Get("/", api.userQuietHoursSchedule)
|
||||
|
||||
Reference in New Issue
Block a user