first commit

This commit is contained in:
2025-07-24 20:13:47 +03:00
commit 94b7585f8b
175 changed files with 85264 additions and 0 deletions

21
app/api/v1/role.py Normal file
View File

@ -0,0 +1,21 @@
from time import time
from fastapi import APIRouter
from app import mongo
from app.utils.response_util import response
router = APIRouter()
@router.get("/get-all", tags=[""])
async def get_all():
start_time = time()
roles = await mongo.roles_collection.find({}, {
"_id": False
}).sort("id", mongo.desc).to_list()
return response({
"roles": roles
}, start_time=start_time)