You've already forked immich
mirror of
https://github.com/immich-app/immich.git
synced 2025-06-16 03:40:33 +02:00
28 lines
671 B
TypeScript
28 lines
671 B
TypeScript
import { Controller, Get, Header } from '@nestjs/common';
|
|
import { ApiExcludeEndpoint } from '@nestjs/swagger';
|
|
import { SystemConfigService } from 'src/domain/system-config/system-config.service';
|
|
import { PublicRoute } from 'src/middleware/auth.guard';
|
|
|
|
@Controller()
|
|
export class AppController {
|
|
constructor(private service: SystemConfigService) {}
|
|
|
|
@ApiExcludeEndpoint()
|
|
@Get('.well-known/immich')
|
|
getImmichWellKnown() {
|
|
return {
|
|
api: {
|
|
endpoint: '/api',
|
|
},
|
|
};
|
|
}
|
|
|
|
@ApiExcludeEndpoint()
|
|
@PublicRoute()
|
|
@Get('custom.css')
|
|
@Header('Content-Type', 'text/css')
|
|
getCustomCss() {
|
|
return this.service.getCustomCss();
|
|
}
|
|
}
|