Skip to content

A bit outdated documentation on Ring middleware? #272

Description

@nfedyashev

https://luminusweb.com/docs/routes.html

We can now wrap the route groups we wish to be private using the wrap-restricted middleware in the .handler/app function:

(def app
(-> (routes
(-> home-routes
(wrap-routes middleware/wrap-csrf)
(wrap-routes middleware/wrap-restricted))
base-routes)
middleware/wrap-base))

I might be wrong but at first sight it looks like Compojure was used as a dependency at some point in Luminus. This is where the wrap-routes function is from.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions