hyperioxx / frontman

Frontman is an open-source API gateway written in Go that allows you to manage your microservices and expose them as a single API endpoint. It acts as a reverse proxy and handles requests from clients, routing them to the appropriate backend service.
https://frontman-labs.github.io/frontman/
GNU General Public License v3.0
5 stars 0 forks source link

Add URL Rewriting Feature to API Gateway #74

Closed hyperioxx closed 1 year ago

hyperioxx commented 1 year ago

The current implementation of the API gateway doesn't support URL rewriting. This feature can be helpful in various scenarios, such as altering the request paths before forwarding them to the backend services, implementing vanity URLs, or maintaining backward compatibility for deprecated endpoints.

Feature Requirements:

  1. Add the ability to define rewrite rules in the backend service
  2. Implement a URL rewriting function that applies the rewrite rules to the request paths.
  3. Call the URL rewriting function in the ServeHTTP method before constructing the target URL.
  4. Ensure that the URL rewriting feature works seamlessly with the existing plugins and authentication.
hyperioxx commented 1 year ago

@nonsoike This is now a feature added