minor fixes
This commit is contained in:
parent
fc986722ec
commit
4244e00c13
4 changed files with 7 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -14,6 +14,6 @@ module.exports = {
|
|||
plugins: ['react'],
|
||||
rules: {
|
||||
'react/prop-types': 'off',
|
||||
'indent': 'off'
|
||||
indent: 'off'
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
export const healthCheck = async (req, res) => {
|
||||
const healthCheck = async (req, res) => {
|
||||
return res.json({
|
||||
uptime: process.uptime(),
|
||||
});
|
||||
};
|
||||
|
||||
export default {healthCheck};
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue