mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-06 13:09:07 +00:00
nestjs access controll mock swagger implementation middleware changes and lib permissions file back to maestro FEAT: sending permissions to duc on startup FEAT: new permissions.enum format FEAT: permissions injection (maestro -> duc) FIX: changing method invocation order FEAT: refactored permission enum + duc permission injector + grpcHandler FEAT: auth guards FEAT: seq ids updated
16 lines
385 B
TypeScript
16 lines
385 B
TypeScript
import { Controller, Get } from '@nestjs/common';
|
|
import { ApiTags } from '@nestjs/swagger';
|
|
import { HealthService } from './health.service';
|
|
|
|
@ApiTags('Health')
|
|
@Controller('health')
|
|
export class HealthController {
|
|
constructor(private readonly healthService: HealthService) {}
|
|
|
|
@Get()
|
|
check() {
|
|
console.log(`/health`, 'check');
|
|
return this.healthService.check();
|
|
}
|
|
}
|