17 lines
426 B
TypeScript
17 lines
426 B
TypeScript
import { Controller, Put } from '@nestjs/common';
|
|
import { AppService } from './app.service';
|
|
import { ApiOperation, ApiTags } from '@nestjs/swagger';
|
|
|
|
@ApiTags('admin')
|
|
@Controller()
|
|
export class AppController {
|
|
constructor(private readonly appService: AppService) {}
|
|
|
|
@Put('loadCards')
|
|
@ApiOperation({ summary: 'Load cards into the database' })
|
|
loadCards(): void {
|
|
this.appService.loadCards();
|
|
return;
|
|
}
|
|
}
|