Spaces:
Sleeping
Sleeping
Download controller/role_controller.py from pdrMottaS/afabd-ts02: direct link, hf CLI and curl.
- Browser
- Download file 288 Bytes
-
https://huggingface.co/spaces/pdrMottaS/afabd-ts02/resolve/main/controller/role_controller.py
- Command line
-
hf download hf://spaces/pdrMottaS/afabd-ts02/controller/role_controller.py
-
curl -L -o role_controller.py https://huggingface.co/spaces/pdrMottaS/afabd-ts02/resolve/main/controller/role_controller.py
288 Bytes
| from fastapi import APIRouter | |
| from schema import ResponseRole | |
| from service import RoleService | |
| from typing import List | |
| router = APIRouter( | |
| prefix='/role' | |
| ) | |
| def list_roles(): | |
| service = RoleService() | |
| return service.list_role() |