feat: remove path alias.

feat: remove Webpack and depend on nodemon.
feat: refactoring expenses.
feat: optimize system users with caching.
feat: architecture tenant optimize.
This commit is contained in:
Ahmed Bouhuolia
2020-09-15 00:51:39 +02:00
parent ad00f140d1
commit a22c8395f3
293 changed files with 3391 additions and 1637 deletions

View File

@@ -0,0 +1,30 @@
import { Router, Request, Response } from 'express';
import MomentFormat from 'lib/MomentFormats';
import moment from 'moment';
export default class Ping {
/**
* Router constur
*/
router() {
const router = Router();
router.get(
'/',
this.ping,
);
return router;
}
/**
* Handle the ping request.
* @param {Request} req
* @param {Response} res
*/
async ping(req: Request, res: Response)
{
return res.status(200).send({
server: true,
});
}
}