mirror of
https://github.com/sakaljurgis/kodi-api-server.git
synced 2026-07-08 20:37:41 +00:00
add kodi api web interface
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { Controller, Get, Header, Res } from '@nestjs/common';
|
||||
import { join } from 'path';
|
||||
import { createReadStream } from 'fs';
|
||||
import { Response } from 'express';
|
||||
|
||||
@Controller('if')
|
||||
export class KodiApiInterfaceController {
|
||||
@Get()
|
||||
@Header('content-type', 'text/html')
|
||||
async main(@Res() res: Response) {
|
||||
const readable = createReadStream(join(__dirname, './View/if.html'));
|
||||
readable.pipe(res);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user