mirror of
https://github.com/samsonjs/immich.git
synced 2026-03-26 09:25:51 +00:00
15 lines
351 B
TypeScript
15 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`)
|
|
}
|
|
}
|