From bfe8ba71aeb9a212872c0110d319698de9cff013 Mon Sep 17 00:00:00 2001 From: Dave Smith-Hayes Date: Tue, 2 Apr 2024 08:48:21 -0400 Subject: [PATCH] Add a get users method. --- app/src/api/user-routes.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/src/api/user-routes.ts b/app/src/api/user-routes.ts index 139597f..e577234 100644 --- a/app/src/api/user-routes.ts +++ b/app/src/api/user-routes.ts @@ -1,2 +1,11 @@ +import type { Request, Response, RequestHandler } from "express"; +const getUsers: RequestHandler = function (req: Request, res: Response) { + console.log(req.method); + res.json({ users: [] }); +} + +export { + getUsers +}