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

Allow route of "/api" without prefixing the mocked routes with "/api" #8

Open
daniel-kun opened this issue Feb 22, 2024 · 0 comments
Open

Comments

@daniel-kun
Copy link

Hello there,

first of all, thank you for this awesome plugin! It is really promising for a streamlined, spec-driven development.

I have one problem with the plugin, though.

It expects all API to be prefixed with a "route", which defaults to "/api". However, my spec already contains the "/api" prefix, which makes the mocked API available via "/api/api", which does not correspond to the real path.

I would love if the plugin could use the "route" as some sort of "filter", i.e. only requests under the "/api" route are handled by prism, but they are not prefixed with another "/api".

Would that be possible?

Maybe any hint as to where start looking at the code, maybe I can create a merge request myself?

Greetings from Germany,

Daniel

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

1 participant