import { Controller, Get, Body} from '@nestjs/common';
import { DownloadfileService } from './downloadfile.service';
import { CreateDownloadfileDto } from './dto/create-downloadfile.dto';
import { Public } from 'src/gestion-utilisateurs/authentication/decorators/public.decorator';

@Public()
@Controller('downloadfile')
export class DownloadfileController {
  constructor(private readonly downloadfileService: DownloadfileService) {}

  @Get()
  async create(@Body() createDownloadfileDto: CreateDownloadfileDto) {
    return await this.downloadfileService.remoteProcessFile();
  }
}
