Hae guys. How do you write custom express routes i...
# orm-help
k
Hae guys. How do you write custom express routes in graphql yoga. For example when you want to use a cookie middleware you could write something like this Server.express.use(cookieParser()). How do you achieve the same functionality with routes. server.get() or even server.express.get() don’t seem to do anything. Am trying to implement clean urls with next js
e
k
I have tried but its not doing anything
e
Can you share a small reproduction code example ?
k
This is it
e
This may be an issue of conflicting routes. Try changing the endpoint of the graphql server:
Copy code
server.start({ endpoint: "/gql" })