minor fixes

This commit is contained in:
rohan09-raj 2022-12-01 22:27:41 +05:30
parent fc986722ec
commit 4244e00c13
4 changed files with 7 additions and 5 deletions

View file

@ -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;
}

View file

@ -14,6 +14,6 @@ module.exports = {
plugins: ['react'],
rules: {
'react/prop-types': 'off',
'indent': 'off'
indent: 'off'
}
}

View file

@ -1,5 +1,7 @@
export const healthCheck = async (req, res) => {
const healthCheck = async (req, res) => {
return res.json({
uptime: process.uptime(),
});
};
export default {healthCheck};

View file

@ -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;