Преглед изворни кода

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`);
-  }
 }