mirror of https://github.com/certd/certd
22 lines
464 B
TypeScript
22 lines
464 B
TypeScript
import {Controller, Get, Provide} from '@midwayjs/core';
|
|
import {BaseController, Constants} from '@certd/lib-server';
|
|
|
|
/**
|
|
*/
|
|
@Provide()
|
|
@Controller('/health')
|
|
export class HealthController extends BaseController {
|
|
|
|
|
|
@Get('/liveliness', { summary: Constants.per.guest })
|
|
async liveliness(): Promise<any> {
|
|
return this.ok('ok')
|
|
}
|
|
|
|
@Get('/readiness', { summary: Constants.per.guest })
|
|
async readiness(): Promise<any> {
|
|
return this.ok('ok')
|
|
}
|
|
|
|
}
|