chore: move controllers and middleware (#8119)

This commit is contained in:
Jason Rasmussen 2024-03-20 15:15:01 -05:00 committed by GitHub
parent 81f0265095
commit 40e079a247
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 55 additions and 60 deletions

View file

@ -0,0 +1,27 @@
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();
}
}