mirror of
https://github.com/amineo/t2-stat-parser.git
synced 2026-01-20 01:34:47 +00:00
17 lines
505 B
TypeScript
17 lines
505 B
TypeScript
import { Controller, Get, Param } from '@nestjs/common';
|
|
import { ApiOperation } from '@nestjs/swagger';
|
|
|
|
import { PlayerService } from './player.service';
|
|
|
|
@Controller('player')
|
|
export class PlayerController {
|
|
constructor(private readonly playerService: PlayerService) {}
|
|
|
|
// /player/:playerGuid
|
|
@Get(':playerGuid')
|
|
@ApiOperation({ tags: [ 'Player' ], summary: 'Return player stats by guid' })
|
|
findOne(@Param('playerGuid') playerGuid: string) {
|
|
return this.playerService.findOne(playerGuid);
|
|
}
|
|
}
|