mirror of
https://github.com/sakaljurgis/kodi-api-server.git
synced 2026-07-09 04:47:41 +00:00
add all-files controller paths
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user