mirror of
https://github.com/kirameki-cafe/Yumi.git
synced 2026-09-13 18:59:19 +00:00
Formatted code
This commit is contained in:
@@ -1,20 +1,18 @@
|
||||
import * as express from 'express';
|
||||
import Environment from '../../providers/Environment'
|
||||
import Environment from '../../providers/Environment';
|
||||
|
||||
import HealthCheck from '../../controllers/API/v1/HealthCheck';
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
let isDevEnv = (req: any, res: any, next: any) => {
|
||||
if(Environment.get().NODE_ENV == 'development') {
|
||||
if (Environment.get().NODE_ENV == 'development') {
|
||||
return next();
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
return res.sendStatus(403);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
router.get('/health', HealthCheck.perform);
|
||||
|
||||
export default router;
|
||||
export default router;
|
||||
|
||||
Reference in New Issue
Block a user