Newer
Older
import { version } from '../package.json';
private version: string = version;
constructor() {
this.start = Date.now();
}
@Get('healthcheck')
async healthcheck() {
const now = Date.now();
return {
status: 'API Online',
uptime: Number((now - this.start) / 1000).toFixed(0),