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

Sub path support #11

Open
yosiat opened this issue Jan 23, 2024 · 2 comments · May be fixed by #15
Open

Sub path support #11

yosiat opened this issue Jan 23, 2024 · 2 comments · May be fixed by #15

Comments

@yosiat
Copy link

yosiat commented Jan 23, 2024

Hi,

I am using this middleware and I am mounting my api server under specific sub-path (using echo.Group("/subpath")), when using the subpath I am getting an error of no matching operation was found.

Without the sub-path it works.

Looks like it's happening because we are constructing a new router with gorillamux and not re-using existing router.

Any idea on how to overcome this issue?

@GreyXor
Copy link

GreyXor commented Feb 21, 2024

I also try to have my api under /api but then all my other endpoint doesn't pass the validation because /foo for example, is not in my api definition.

@GreyXor
Copy link

GreyXor commented Feb 22, 2024

hello @yosiat, would you try my PR and tell me if that fit your needs ?

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

Successfully merging a pull request may close this issue.

2 participants