From 4244e00c1330b11b45f7cc33ffd55f9af59f6587 Mon Sep 17 00:00:00 2001 From: rohan09-raj Date: Thu, 1 Dec 2022 22:27:41 +0530 Subject: minor fixes --- admin/src/index.css | 2 +- client/.eslintrc.js | 2 +- server/controllers/health.js | 4 +++- server/routes/health.js | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/admin/src/index.css b/admin/src/index.css index 652491a..61171d6 100644 --- a/admin/src/index.css +++ b/admin/src/index.css @@ -21,6 +21,6 @@ body { } code { - font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', + font-family: source-code-pro, Menlo, Consolas, 'Courier New', monospace; } diff --git a/client/.eslintrc.js b/client/.eslintrc.js index d85199d..de46e10 100644 --- a/client/.eslintrc.js +++ b/client/.eslintrc.js @@ -14,6 +14,6 @@ module.exports = { plugins: ['react'], rules: { 'react/prop-types': 'off', - 'indent': 'off' + indent: 'off' } } diff --git a/server/controllers/health.js b/server/controllers/health.js index 8c443bf..d0ebc4d 100644 --- a/server/controllers/health.js +++ b/server/controllers/health.js @@ -1,5 +1,7 @@ -export const healthCheck = async (req, res) => { +const healthCheck = async (req, res) => { return res.json({ uptime: process.uptime(), }); }; + +export default {healthCheck}; diff --git a/server/routes/health.js b/server/routes/health.js index 2980322..bd48e52 100644 --- a/server/routes/health.js +++ b/server/routes/health.js @@ -1,8 +1,8 @@ import Express from 'express'; -import {healthCheck} from '../controllers/health.js'; +import health from '../controllers/health.js'; const router = Express.Router(); -router.get('/health', healthCheck); +router.get('/health', health.healthCheck); export default router; -- cgit v1.2.3-73-gaa49b