add all-files controller paths

This commit is contained in:
jurgis
2022-12-10 14:22:25 +01:00
parent f4332c34dc
commit f277d57406
+26 -1
View File
@@ -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,
};
}
}