immich/server/src/api-v1/server-info/server-info.controller.ts

20 lines
465 B
TypeScript
Raw Normal View History

2022-02-03 10:06:44 -06:00
import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { ServerInfoService } from './server-info.service';
@Controller('server-info')
export class ServerInfoController {
constructor(private readonly serverInfoService: ServerInfoService) {}
@Get()
async getServerInfo() {
return await this.serverInfoService.getServerInfo();
}
@Get('/ping')
async getServerPulse() {
return {
res: 'pong',
};
}
}