From f277d574063916ed0dd018e846ee9b401d37bf54 Mon Sep 17 00:00:00 2001 From: jurgis Date: Sat, 10 Dec 2022 14:22:25 +0100 Subject: [PATCH] add all-files controller paths --- src/KodiApi/AllFiles/all-files.controller.ts | 27 +++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/src/KodiApi/AllFiles/all-files.controller.ts b/src/KodiApi/AllFiles/all-files.controller.ts index a01e032..4d7ed3a 100644 --- a/src/KodiApi/AllFiles/all-files.controller.ts +++ b/src/KodiApi/AllFiles/all-files.controller.ts @@ -1,4 +1,4 @@ -import { Controller, Get } from '@nestjs/common'; +import { Controller, Get, Param } from '@nestjs/common'; import ApiResponse from '../Dto/api-response.dto'; import { AllFilesService } from './all-files.service'; @@ -10,4 +10,29 @@ export class AllFilesController { getMenu(): ApiResponse { return this.allFilesService.getMenu(); } + + @Get('show') + getShows() { + return { will: 'show shows list' }; + } + + @Get('movie') + getMovies() { + return { will: 'show movies list' }; + } + + @Get('play') + play() { + return { will: 'return a playable stream' }; + } + + @Get(':titleId/:seasonId?') + getTitle( + @Param('titleId') titleId: number, + @Param('seasonId') seasonId: number, + ) { + return { + will: 'show title videos list title ' + titleId + ', season ' + seasonId, + }; + } }