Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

FilesController.cs 477B

123456789101112131415161718
  1. namespace Diligent.WebAPI.Host.Controllers.V1
  2. {
  3. [ApiVersion("1.0")]
  4. [Route("v{version:apiVersion}/files")]
  5. [ApiController]
  6. public class FilesController : ControllerBase
  7. {
  8. private readonly IFileService _fileService;
  9. public FilesController(IFileService fileService)
  10. {
  11. _fileService = fileService;
  12. }
  13. [HttpGet]
  14. public async Task<IActionResult> GetAll() => Ok(await _fileService.GetAll());
  15. }
  16. }