afabd-ts02 / controller /role_controller.py
pdrMottaS
first commit
43059ab
raw
history blame contribute delete
288 Bytes
from fastapi import APIRouter
from schema import ResponseRole
from service import RoleService
from typing import List
router = APIRouter(
prefix='/role'
)
@router.get("/",response_model=List[ResponseRole])
def list_roles():
service = RoleService()
return service.list_role()