| @@ -27,8 +27,11 @@ namespace Diligent.WebAPI.Host.Controllers.V1 | |||
| Ok(await _categoryService.GetCategories(userId)); | |||
| [HttpGet("all-categories")] | |||
| public async Task<IActionResult> GetAllCategories() => | |||
| Ok(await _categoryService.GetAllCategories()); | |||
| public async Task<IActionResult> GetAllCategories() | |||
| { | |||
| User? user = (User?)HttpContext.Items["User"]; | |||
| return Ok(await _categoryService.GetAllCategories(user.Id)); | |||
| } | |||
| [HttpPost] | |||
| public async Task<IActionResult> CreateCategory([FromBody] CreateCategoryDto request) | |||