Skip to content
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

Convert enableCsrf to middleware #339

Closed
mtlynch opened this issue Oct 23, 2019 · 0 comments · Fixed by #348
Closed

Convert enableCsrf to middleware #339

mtlynch opened this issue Oct 23, 2019 · 0 comments · Fixed by #348
Labels
Hacktoberfest https://hacktoberfest.digitalocean.com

Comments

@mtlynch
Copy link
Owner

mtlynch commented Oct 23, 2019

Per discussion for #144, we can clean up the code in routes.go if we convert enableCsrf to a middleware function that we can call with:

s.router.Use(s.enableCsrf)
@mtlynch mtlynch added the Hacktoberfest https://hacktoberfest.digitalocean.com label Oct 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hacktoberfest https://hacktoberfest.digitalocean.com
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant