mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
20 lines
465 B
TypeScript
20 lines
465 B
TypeScript
|
|
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',
|
||
|
|
};
|
||
|
|
}
|
||
|
|
}
|