Suggestion: Routing by query params #2353
Maximilan4
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Interface for router is coming in |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Motivation: sometimes we need to create api which implements some external protocol, for example: amazon s3.
Current amazon api mostly works with query params, thats leads for need of using them on custom s3 implementation.
Amazon docs: https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLocation.html
Current echo api does not allow any routing by query part of request, or regular expression.
Also, seems like no way, to use custom router or extending router on echo instance, because
Router
is just a struct, but not an interface.I think, it can be realized by next way:
SetRouter(r echo.Router)
, which allow to customize router logic, if neededI wanna use most echo features, but this thing does not allow to use this framework for non path/rest style api implementation.
Beta Was this translation helpful? Give feedback.
All reactions