| | 1 | | using Microsoft.AspNetCore.Authorization; |
| | 2 | | using Microsoft.AspNetCore.Mvc; |
| | 3 | | using MRA.DTO.ViewModels.Art; |
| | 4 | | using MRA.DTO.ViewModels.Art.Select; |
| | 5 | | using MRA.Services; |
| | 6 | | using MRA.WebApi.Models.Requests; |
| | 7 | | using MRA.WebApi.Models.Responses; |
| | 8 | | using MRA.Services.Models.Drawings; |
| | 9 | | using MRA.Services.Models.Collections; |
| | 10 | | using MRA.DTO.Exceptions; |
| | 11 | | using MRA.DTO.Models; |
| | 12 | | using MRA.Services.Storage; |
| | 13 | |
|
| | 14 | | namespace MRA.WebApi.Controllers; |
| | 15 | |
|
| | 16 | | [ApiController] |
| | 17 | | [Route("api/art")] |
| | 18 | | public class ArtController : Controller |
| | 19 | | { |
| | 20 | |
|
| | 21 | | private readonly IAppService _appService; |
| | 22 | | private readonly IStorageService _storageService; |
| | 23 | | private readonly IDrawingService _drawingService; |
| | 24 | | private readonly ICollectionService _collectionService; |
| | 25 | | private readonly ILogger<ArtController> _logger; |
| | 26 | |
|
| 0 | 27 | | public ArtController( |
| 0 | 28 | | ILogger<ArtController> logger, |
| 0 | 29 | | IAppService appService, |
| 0 | 30 | | IDrawingService drawingService, |
| 0 | 31 | | IStorageService storageService, |
| 0 | 32 | | ICollectionService collectionService |
| 0 | 33 | | ) |
| | 34 | | { |
| 0 | 35 | | _logger = logger; |
| 0 | 36 | | _appService = appService; |
| 0 | 37 | | _drawingService = drawingService; |
| 0 | 38 | | _storageService = storageService; |
| 0 | 39 | | _collectionService = collectionService; |
| 0 | 40 | | } |
| | 41 | |
|
| | 42 | | } |