Skip to content

Is it possible to have two different endpoints? #623

Answered by mcollina
smolinari asked this question in Q&A
Discussion options

You must be logged in to vote

You can register the plugin twice:

app.register(async function (app) {
  app.register(mercurius, { ... })
}, { prefix: '/a' })
app.register(async function (app) {
   app.register(mercurius, { ... })
}, { prefix: '/b' })

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@smolinari
Comment options

@mcollina
Comment options

Answer selected by smolinari
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants