瀏覽代碼

remove redirect from previous implementation of web routing

Alex Tran 3 年之前
父節點
當前提交
7948cb8110
共有 1 個文件被更改,包括 0 次插入7 次删除
  1. 0 7
      server/apps/immich/src/app.controller.ts

+ 0 - 7
server/apps/immich/src/app.controller.ts

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