app using nest js in real world code example
Example: nestjs code example
import { Controller, Get } from '@nestjs/common';
@Controller('/api')
export class AppController {
@Get('/testAuth0')
getHello() {
return {
status: 'ok'
};
}
@Get('/health')
getHealthCheck() {
return {
status: 'ok'
};
}
}