apollographql / router

A configurable, high-performance routing runtime for Apollo Federation 🚀
https://www.apollographql.com/docs/router/
Other
813 stars 272 forks source link

Need the ability to serve on multiple paths #3631

Open BrynCooke opened 1 year ago

BrynCooke commented 1 year ago

Some users have clients that are using combinations of / and /graphql. Changing these clients isn't an option, so it'd be helpful you could specify multiple paths to listen on.

Suggest that we pull this stuff out of supergraph into a server section:

server:
  listen:
  paths:
    - /
    - /graphql
o0Ignition0o commented 1 year ago

Note this has implications around the way we validate web endpoints, and the way we set up routes in the axum router.

smyrick commented 7 months ago

Could also help solve: https://github.com/apollographql/router/issues/4836