feat(api): add inventory API (GET /api/inventory)

This commit is contained in:
Bastian Wagner
2026-08-20 16:50:50 +02:00
parent 9df740e7d4
commit 820c69704f
5 changed files with 196 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import { Controller, Get } from '@nestjs/common';
import { DEMO_CHARACTER_ID } from '../demo/demo-character.constants';
import { InventoryResponseDto, InventoryService } from './inventory.service';
@Controller('inventory')
export class InventoryController {
constructor(private readonly inventoryService: InventoryService) {}
@Get()
getInventory(): Promise<InventoryResponseDto> {
return this.inventoryService.getInventory(DEMO_CHARACTER_ID);
}
}