first commit
This commit is contained in:
21
app/api/v1/payroll/payroll.py
Normal file
21
app/api/v1/payroll/payroll.py
Normal 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("/scheme/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)
|
||||
Reference in New Issue
Block a user