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

path-for ignores trailing part after path variable #150

Closed
ulsa opened this issue Aug 12, 2015 · 2 comments
Closed

path-for ignores trailing part after path variable #150

ulsa opened this issue Aug 12, 2015 · 2 comments
Assignees
Labels

Comments

@ulsa
Copy link

ulsa commented Aug 12, 2015

I have this:

(POST* "/companies/:company-id/refresh" []
  :name :refresh-company
  ...

and refer to it like this:

(found (path-for :refresh-company {:company-id id}))

but get in Location this:

http://127.0.0.1:3000/api/companies/4/

ie, missing the trailing refresh. Expected the path to be:

http://127.0.0.1:3000/api/companies/4/refresh
@ikitommi ikitommi added the bug label Aug 12, 2015
@ikitommi
Copy link
Member

will check this out.

@ikitommi ikitommi self-assigned this Aug 12, 2015
@ikitommi
Copy link
Member

should be fixed in [metosin/compojure-api "0.22.2"].

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

No branches or pull requests

2 participants