Skip to content

feat: add session actor middleware #897

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 11 commits into from
Prev Previous commit
Merge branch 'main' into actor-types
  • Loading branch information
deansheather authored Apr 8, 2022
commit dadef235dee08a3713e475b906cdf27ded608328
1 change: 1 addition & 0 deletions coderd/coderd.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func New(options *Options) (http.Handler, func()) {
// Specific routes can specify smaller limits.
httpmw.RateLimitPerMinute(512),
session.ExtractActor(options.Database),
debugLogRequest(api.Logger),
)
r.Get("/", func(w http.ResponseWriter, r *http.Request) {
httpapi.Write(w, http.StatusOK, httpapi.Response{
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.