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

Use long urls instead of query parameters #51

Open
TheZoq2 opened this issue Jun 4, 2018 · 0 comments
Open

Use long urls instead of query parameters #51

TheZoq2 opened this issue Jun 4, 2018 · 0 comments

Comments

@TheZoq2
Copy link
Owner

TheZoq2 commented Jun 4, 2018

Replace

mount.mount("/list", file_request_handlers::file_list_request_handler);

with

mount.mount("/list", ..)
mount.mount("/list/{id}", ..)
mount.mount("/list/{id}/file/{id}", ..)

This will make it easier to see valid parameters for requests from the code since they would be visible in the handler declaration.

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

No branches or pull requests

1 participant