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

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_schemes():
start_time = time()
schemes = await mongo.pay_rate_schemes_collection.find(
{}, {"_id": False}
).sort("id", mongo.asc).to_list()
return response({
"payrollSchemas": schemes
}, start_time=start_time)