mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
feat: Add RBAC to /files endpoints (#1664)
* feat: Add RBAC to /files endpoints
This commit is contained in:
@ -134,6 +134,7 @@ func newRouter(options *Options, a *api) chi.Router {
|
||||
r.Route("/files", func(r chi.Router) {
|
||||
r.Use(
|
||||
apiKeyMiddleware,
|
||||
authRolesMiddleware,
|
||||
// This number is arbitrary, but reading/writing
|
||||
// file content is expensive so it should be small.
|
||||
httpmw.RateLimitPerMinute(12),
|
||||
|
Reference in New Issue
Block a user