- Timestamp:
- 07/06/22 13:13:35 (2 years ago)
- Branches:
- master
- Children:
- 899b19d
- Parents:
- d76b7ee
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
resTools_backend/backend/Controllers/RestaurantsController.cs
rd76b7ee rcc4db18 37 37 return response; 38 38 } 39 40 [HttpPost("upload")] 41 public async Task<IActionResult> UploadImage([FromForm] IFormFile file) 42 { 43 await _restaurantService.UploadImage(file); 44 return Ok(); 45 } 46 47 [Authorize] 48 [HttpPut()] 49 public async Task<IActionResult> UpdateRestaurant([FromBody] UpdateRestaurantRequest req) 50 { 51 await _restaurantService.UpdateRestaurant(req); 52 return Ok(); 53 } 39 54 }
Note:
See TracChangeset
for help on using the changeset viewer.