Files
kodi-api-server/src/app.controller.ts
T

21 lines
552 B
TypeScript

import { Controller, Get } from '@nestjs/common';
import { AppService } from './app.service';
import { RequestRange } from './RequestRange/request-range.decorator';
import RequestRangeBytes from './RequestRange/request-range-bytes.class';
@Controller()
export class AppController {
constructor(private readonly appService: AppService) {}
@Get('api')
getElse(@RequestRange() requestedRange: RequestRangeBytes) {
return {
range: requestedRange,
};
}
@Get('*')
getHello(): string {
return this.appService.getHello();
}
}