src/module/information/information.controller.ts
information
Methods |
|
Async getHandbookURL |
getHandbookURL()
|
Decorators :
@Get('/handbook-url')
|
Returns :
Promise<string>
|
Async getVersion |
getVersion()
|
Decorators :
@Get('/version')
|
Returns :
Promise<string>
|
import { Controller, Get } from '@nestjs/common';
import { InformationService } from './information.service';
@Controller('information')
export class InformationController {
constructor(private readonly informationService: InformationService) {}
@Get('/version')
async getVersion(): Promise<string> {
return this.informationService.getVersion();
}
@Get('/handbook-url')
async getHandbookURL(): Promise<string> {
return this.informationService.getHandbookUrl();
}
}