import { Controller, Get, Param, Query } from '@nestjs/common';
import { FilmsService } from './films.service';

@Controller('films')
export class FilmsController {
  constructor(private svc: FilmsService) {}

  @Get()
  list(@Query() q: any) { return this.svc.list(q); }

  @Get(':slug')
  detail(@Param('slug') slug: string) { return this.svc.detail(slug); }
}
