From 337b0a2a7d358a597e114197cf5d12e8ed81a19e Mon Sep 17 00:00:00 2001 From: rohan09-raj Date: Thu, 28 Jul 2022 19:48:13 +0530 Subject: folder structure setup and database addition --- server/controllers/health.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 server/controllers/health.js (limited to 'server/controllers') diff --git a/server/controllers/health.js b/server/controllers/health.js new file mode 100644 index 0000000..8c443bf --- /dev/null +++ b/server/controllers/health.js @@ -0,0 +1,5 @@ +export const healthCheck = async (req, res) => { + return res.json({ + uptime: process.uptime(), + }); +}; -- cgit