Skip to content

Can Nexus also handle non GraphQL requests? #1052

Answered by iherger
marceloverdijk asked this question in General
Discussion options

You must be logged in to vote

Yes, you can do e.g.

import { Request, Response } from "express";

server.express.get("/auth/login/:email/:token", (req: Request, res: Response) =>
  loginResponse(req, res),
);

server.express.disable("x-powered-by");

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by marceloverdijk
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants