2024-01-16 22:40:09 +01:00
|
|
|
import { Controller, Get, Header } from '@nestjs/common';
|
2023-01-09 22:32:58 +01:00
|
|
|
import { ApiExcludeEndpoint } from '@nestjs/swagger';
|
2024-03-21 00:07:30 +01:00
|
|
|
import { SystemConfigService } from 'src/services/system-config.service';
|
2023-01-09 22:32:58 +01:00
|
|
|
|
2022-05-21 09:23:55 +02:00
|
|
|
@Controller()
|
2023-01-09 22:32:58 +01:00
|
|
|
export class AppController {
|
2023-11-18 05:13:36 +01:00
|
|
|
constructor(private service: SystemConfigService) {}
|
|
|
|
|
|
|
|
@ApiExcludeEndpoint()
|
|
|
|
@Get('.well-known/immich')
|
|
|
|
getImmichWellKnown() {
|
|
|
|
return {
|
|
|
|
api: {
|
|
|
|
endpoint: '/api',
|
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
@ApiExcludeEndpoint()
|
|
|
|
@Get('custom.css')
|
|
|
|
@Header('Content-Type', 'text/css')
|
|
|
|
getCustomCss() {
|
|
|
|
return this.service.getCustomCss();
|
|
|
|
}
|
2023-01-09 22:32:58 +01:00
|
|
|
}
|