mirror of
https://github.com/LukeHagar/immich.git
synced 2025-12-06 04:20:06 +00:00
16 lines
351 B
TypeScript
16 lines
351 B
TypeScript
import { Controller, Get, Res, Headers } from '@nestjs/common';
|
|
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`)
|
|
}
|
|
}
|