.
This commit is contained in:
1 parent
905bbcc6dd
commit
2472f865ad
14 files changed
+825
-18
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import { Controller, Get, Query } from '@nestjs/common';
|
||||
import { AllowPublicAccess } from '../auth/allow-public-access.decorator';
|
||||
import {
|
||||
RiotDdragonService,
|
||||
type DdragonManifest,
|
||||
} from './riot-ddragon.service';
|
||||
|
||||
@Controller('riot/ddragon')
|
||||
export class RiotDdragonController {
|
||||
constructor(private readonly ddragonService: RiotDdragonService) {}
|
||||
|
||||
@Get('manifest')
|
||||
@AllowPublicAccess()
|
||||
public async getManifest(
|
||||
@Query('locale') locale?: string,
|
||||
): Promise<DdragonManifest> {
|
||||
return this.ddragonService.getManifest(locale ?? 'ko_KR');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user