I have set up HTTP Basic authentication for my app using Ring Basic Authentication. It works just fine and looks like this:
(:require [noir.server :as server]
...
(server/add-middleware wrap-basic-authentication authenticated?)
authenticated? is my own function implementation. Now I'd like to configure only a part of the application to be under basic authentication and other part to be public. I know this can be done with Ring (and Compojure) so it must be possible to do with Noir which is built on Ring. I'm just not quite sure how to apply the example is adapted to Noir because it uses routes and I don't see how I can get to those in Noir. Any ideas?