Commit 1e98a3df authored by nanahira's avatar nanahira

fix

parent 599f70ca
Pipeline #3389 passed with stages
in 3 minutes and 34 seconds
import { Controller, Get } from '@nestjs/common'; import { Controller, Get } from '@nestjs/common';
import { AppService } from './app.service'; import { AppService } from './app.service';
import { ApiTags } from '@nestjs/swagger'; import { ApiOperation, ApiTags } from '@nestjs/swagger';
@Controller() @Controller()
@ApiTags('tips')
export class AppController { export class AppController {
constructor(private readonly appService: AppService) {} constructor(private readonly appService: AppService) {}
@Get('tips.json') @Get('tips.json')
@ApiTags('tips') @ApiOperation({
summary: '获取提示',
description: '获取 SRVPro 需要的 tips.json 文件。',
})
async getTips(): Promise<string[]> { async getTips(): Promise<string[]> {
return await this.appService.getTips(); return await this.appService.getTips();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment