aboutsummaryrefslogtreecommitdiff
path: root/server/controllers/health.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/health.js')
-rw-r--r--server/controllers/health.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/controllers/health.js b/server/controllers/health.js
new file mode 100644
index 0000000..d31c489
--- /dev/null
+++ b/server/controllers/health.js
@@ -0,0 +1,7 @@
+const healthCheck = async (req, res) => {
+ return res.json({
+ uptime: process.uptime(),
+ });
+};
+
+export default { healthCheck };