Skip to content

[Question] possible to add a url prefix? #37

Description

@Clan-Utility

I run api-mock as sub app of my web.

In nginx:

location /mock {
    proxy_pass http://127.0.0.1:3000;

And in .md file

# GET /message
+ Response 200 (text/plain)
    Hello World!

Then, it fails to fetch mydomain.com/mock/message.

I know I could add /mock/ to all the URLs in the .md file like #GET /mock/message. But that would be inflexible when I want to change the url prefix to /api/v1, for example.

Is there a way to add this common url prefix by api-mock?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions