You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
373 B
15 lines
373 B
3 years ago
|
import { Controller, Get } from '@nestjs/common';
|
||
|
|
||
|
import { InfoService } from './info.service';
|
||
|
import { InfoItem } from './interfaces/info-item.interface';
|
||
|
|
||
|
@Controller('info')
|
||
|
export class InfoController {
|
||
|
public constructor(private readonly infoService: InfoService) {}
|
||
|
|
||
|
@Get()
|
||
|
public async getInfo(): Promise<InfoItem> {
|
||
|
return this.infoService.get();
|
||
|
}
|
||
|
}
|