|
|
|
@ -1,7 +1,7 @@
@@ -1,7 +1,7 @@
|
|
|
|
|
import { Controller, Get } from '@nestjs/common' |
|
|
|
|
import { Controller, Get, Query } from '@nestjs/common' |
|
|
|
|
import { ApiOkResponse, ApiOperation, ApiTags } from '@nestjs/swagger' |
|
|
|
|
import { AppSystemService } from './app-system.service' |
|
|
|
|
import { AppVersionDto } from './dto' |
|
|
|
|
import { AppVersionDto, GetAppVersionParamsDto } from './dto' |
|
|
|
|
import { AuthGuard } from 'src/domain/sessions/decorators' |
|
|
|
|
|
|
|
|
|
@ApiTags('App | System') |
|
|
|
@ -18,7 +18,7 @@ export class AppSystemController {
@@ -18,7 +18,7 @@ export class AppSystemController {
|
|
|
|
|
}) |
|
|
|
|
@AuthGuard() |
|
|
|
|
@Get('app-version') |
|
|
|
|
public async getAppVersion() { |
|
|
|
|
return this.systemService.getAppVersion() |
|
|
|
|
public async getAppVersion(@Query() dto: GetAppVersionParamsDto) { |
|
|
|
|
return this.systemService.getAppVersion(dto) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|