using FindAndDrive.Domain.Interfaces.Services; using FindAndDrive.Domain.Models.DTO; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace FindAndDrive.API.Controllers; [ApiExplorerSettings(IgnoreApi = true)] [Authorize(nameof(Permissions.Role))] [ApiController] [Route("api/[controller]")] public class RoleController : ControllerBase { private readonly IRoleService _roleService; public RoleController(IRoleService roleService) { _roleService = roleService; } [HttpGet] public async Task GetRoles() { var roles = await _roleService.GetRoles(); return Ok(roles); } }