mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-18 09:04:44 -04:00
Implement routes in MonitoringController
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
eab06c0296
commit
84b7840ce3
2 changed files with 17 additions and 2 deletions
|
@ -1,4 +1,17 @@
|
|||
import { Controller } from '@nestjs/common';
|
||||
import { Controller, Get } from '@nestjs/common';
|
||||
import { MonitoringService } from '../../../monitoring/monitoring.service';
|
||||
|
||||
@Controller('monitoring')
|
||||
export class MonitoringController {}
|
||||
export class MonitoringController {
|
||||
constructor(private monitoringService: MonitoringService) {}
|
||||
|
||||
@Get()
|
||||
getStatus() {
|
||||
return this.monitoringService.getServerStatus();
|
||||
}
|
||||
|
||||
@Get('prometheus')
|
||||
getPrometheusStatus() {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue