import os
import time
from typing import Optional
from fastapi import APIRouter
from ..controller import GetUsersDetails,GetCompanyUserDetails
router = APIRouter()



@router.get("/fetch/empCount", tags=["company"])
async def read_users(name: Optional[str]=None):
    data = await GetCompanyUserDetails(name)
    servername=os.getenv('APP_SERVER')
    resp = {
        "server":servername, 
        "total_company":len(data)
    }
    time.sleep(int(os.getenv('APP_SLEEP')))
    return resp

59fa67564af43c8def7d4b45e2e79f7863324398
<mask token>

<mask token>


@router.get('/fetch/empCount', tags=['company'])
async def read_users(name: Optional[str]=None):
    data = await GetCompanyUserDetails(name)
    servername = os.getenv('APP_SERVER')
    resp = {'server': servername, 'total_company': len(data)}
    time.sleep(int(os.getenv('APP_SLEEP')))
    return resp

<mask token>
router = APIRouter()


@router.get('/fetch/empCount', tags=['company'])
async def read_users(name: Optional[str]=None):
    data = await GetCompanyUserDetails(name)
    servername = os.getenv('APP_SERVER')
    resp = {'server': servername, 'total_company': len(data)}
    time.sleep(int(os.getenv('APP_SLEEP')))
    return resp

import os
import time
from typing import Optional
from fastapi import APIRouter
from ..controller import GetUsersDetails, GetCompanyUserDetails
router = APIRouter()


@router.get('/fetch/empCount', tags=['company'])
async def read_users(name: Optional[str]=None):
    data = await GetCompanyUserDetails(name)
    servername = os.getenv('APP_SERVER')
    resp = {'server': servername, 'total_company': len(data)}
    time.sleep(int(os.getenv('APP_SLEEP')))
    return resp

import os
import time
from typing import Optional
from fastapi import APIRouter
from ..controller import GetUsersDetails,GetCompanyUserDetails
router = APIRouter()



@router.get("/fetch/empCount", tags=["company"])
async def read_users(name: Optional[str]=None):
    data = await GetCompanyUserDetails(name)
    servername=os.getenv('APP_SERVER')
    resp = {
        "server":servername, 
        "total_company":len(data)
    }
    time.sleep(int(os.getenv('APP_SLEEP')))
    return resp
