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