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

Allow nils in :middleware vector #228

Closed
ikitommi opened this issue Apr 4, 2016 · 0 comments · Fixed by #230
Closed

Allow nils in :middleware vector #228

ikitommi opened this issue Apr 4, 2016 · 0 comments · Fixed by #230

Comments

@ikitommi
Copy link
Member

ikitommi commented Apr 4, 2016

Would be nice if one could optionally mount middleware, based on system values.

(context "/api" []
  :middleware [(if-not (env/dev-mode? env) wrap-anti-forgery)]
  ...)

Currently the :middleware breaks on nils.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant