feat: expose health and demo character APIs
This commit is contained in:
12
apps/api/src/characters/characters.controller.ts
Normal file
12
apps/api/src/characters/characters.controller.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Controller, Get } from '@nestjs/common';
|
||||
import { CharactersService } from './characters.service';
|
||||
|
||||
@Controller('characters')
|
||||
export class CharactersController {
|
||||
constructor(private readonly charactersService: CharactersService) {}
|
||||
|
||||
@Get('me')
|
||||
getDemoCharacter() {
|
||||
return this.charactersService.getDemoCharacter();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user