diff --git a/src/modules/system/systemWeb.controller.ts b/src/modules/system/systemWeb.controller.ts index 8e85671..d7ad178 100644 --- a/src/modules/system/systemWeb.controller.ts +++ b/src/modules/system/systemWeb.controller.ts @@ -1,4 +1,4 @@ -import { Controller, Post, Inject, UseGuards } from '@nestjs/common'; +import { Controller, Post, Get, Inject, UseGuards } from '@nestjs/common'; import { ApiTags, ApiOperation, ApiBody, ApiHeader } from '@nestjs/swagger'; import { SystemWebService } from './systemWeb.service'; import { TokenAuthGuard } from '../../core/tools/token-auth.guard'; @@ -53,4 +53,16 @@ export class SystemWebController { public async getRestartTime(): Promise { return await this.systemService.getRestartTime(); } + + /** + * Ping接口 + */ + @Get('ping') + @ApiOperation({ + summary: 'Ping测试', + description: '嗨,服务器没事', + }) + public async ping(): Promise { + return 'pong'; + } }