mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
Add web interface with admin functionality (#167)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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`)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user