-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the route context to the request map
This provides access to the route prefix as a companion to the existing `:compojure/route` data allowing the full route to be reconstructed. Since the `context` macro only accepts a path the new `:compojure/context` value simply contains the route path instead of the `[method route]` pair present in `:compojure/route`. This data was introduced as a new field in the request path, rather than updating `:compojure/route` to include the context for the sake of backwards compatibility.
- Loading branch information
Chris Thunes
committed
Aug 25, 2021
1 parent
a22e0fe
commit 8549853
Showing
2 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters