1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-22 01:47:08 +02:00

remove redirect from previous implementation of web routing

This commit is contained in:
Alex Tran 2022-06-24 06:33:11 -05:00
parent 568436f188
commit 7948cb8110
No known key found for this signature in database
GPG Key ID: E4954BC787B85C8A

View File

@ -3,11 +3,4 @@ import { Response } from 'express';
@Controller() @Controller()
export class AppController { export class AppController {
constructor() {} constructor() {}
@Get()
async redirectToWebpage(@Res({ passthrough: true }) res: Response, @Headers() headers) {
const host = headers.host;
return res.redirect(`http://${host}:2285`);
}
} }