feat: expose health and demo character APIs

This commit is contained in:
Bastian Wagner
2026-08-18 20:00:40 +02:00
parent 0615bb1841
commit e9b111daf8
14 changed files with 208 additions and 51 deletions

View File

@@ -0,0 +1,7 @@
import { HealthController } from './health.controller';
describe('HealthController', () => {
it('returns an ok status for liveness checks', () => {
expect(new HealthController().getHealth()).toEqual({ status: 'ok' });
});
});

View File

@@ -0,0 +1,9 @@
import { Controller, Get } from '@nestjs/common';
@Controller('health')
export class HealthController {
@Get()
getHealth() {
return { status: 'ok' };
}
}

View File

@@ -0,0 +1,7 @@
import { Module } from '@nestjs/common';
import { HealthController } from './health.controller';
@Module({
controllers: [HealthController],
})
export class HealthModule {}