Skip to content

Remove path prefix from url? #1133

@nsisodiya

Description

@nsisodiya

I have created my paths like this.

https://api.syn-platform.com/service1/
https://api.syn-platform.com/service2/
Now these service1 and service2 are two independent node js backend server.
If tomorrow, If I want to change the path, from /service1 to /service1-beta/
I have to change urls and coding inside the service.
Also, I need to register my urls like /service1/health inside the codebase. I wish if ALB Ingress do some remove some portion of path so that my service will receive it as /health and not /service1/health.

fastify support Route prefixing which we are using it - https://github.com/fastify/fastify/blob/master/docs/Routes.md#route-prefixing but I wish if something can be done so that we don't need to use Route prefix too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions