2021-05-16 22:11:14 +02:00
|
|
|
import { InfoItem } from '@ghostfolio/common/interfaces';
|
2021-04-13 21:53:58 +02:00
|
|
|
import { Controller, Get } from '@nestjs/common';
|
|
|
|
|
|
|
|
import { InfoService } from './info.service';
|
|
|
|
|
|
|
|
@Controller('info')
|
|
|
|
export class InfoController {
|
|
|
|
public constructor(private readonly infoService: InfoService) {}
|
|
|
|
|
|
|
|
@Get()
|
|
|
|
public async getInfo(): Promise<InfoItem> {
|
|
|
|
return this.infoService.get();
|
|
|
|
}
|
|
|
|
}
|