[HttpGet]
public IActionResult GetCategoriesWithImagesAsync()
{
var result = _categoryService.GetCategoriesWithImagesAsync();
return Ok(result);
}
Here I'd like to add something like Authorize, and return more data if user is logged in. Is it possible?
EDIT! I'm using JWT to check if user is logged in.