Skip to content

Instantly share code, notes, and snippets.

@Palatnyi
Created January 12, 2020 14:04
Show Gist options
  • Save Palatnyi/dbcdc34c63d081fbd4ff350ec30cf9ce to your computer and use it in GitHub Desktop.
Save Palatnyi/dbcdc34c63d081fbd4ff350ec30cf9ce to your computer and use it in GitHub Desktop.
const alwaysRespondWithHelloWorld: RequestHandler = (req: Request, res: Response) => {
req.user = {
name: 'Andrew',
surname: 'Palatnyi',
age: 27
};
res.send('hello world');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment