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

case preservation from URL submissions relating to methods (routes) #39

Open
badbettty opened this issue May 10, 2024 · 2 comments
Open

Comments

@badbettty
Copy link

Hello snoozers

Taking this example purpose only code extract:

(defroute myresource (:get :text/* resid) ...)

It appears that 'resid' is a symbol and gets converted to uppercase before it is used in the method ie. case, from the url submission, is not preserved.

eg. 'http://someerver/myresource/SomeDoc0001' would present SOMEDOC0001 as 'resid'

If case preservation of resource name (resid in this case) was important, eg when posting/putting (http POST/PUT) a resource, what is the correct approach in snooze to do this ?

Thank you, regards

@mdbergmann
Copy link

Check this out: #30

@badbettty
Copy link
Author

badbettty commented May 10, 2024

Check this out: #30

ah ! thank you ... yes I had been reading that (comments, readme, tutorial) and due to my own ignorance , I was struggling to understand ... I will have another do at it and experiment. I prefer when things just work ... it is called laziness ;-)

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

No branches or pull requests

2 participants