mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
feat: remove Webpack and depend on nodemon. feat: refactoring expenses. feat: optimize system users with caching. feat: architecture tenant optimize.
30 lines
517 B
TypeScript
30 lines
517 B
TypeScript
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,
|
|
});
|
|
}
|
|
} |