import { ApiMethods, ApiRoutes } from '../../model/api'; import { Team } from '../../model/user'; import authenticateRequest from './authenticateRequest'; const getTeamById = async (teamId: string): Promise => { const response = await authenticateRequest( ApiMethods.Get, `${ApiRoutes.GetTeams}/${teamId}`, ); return response.data; }; export default getTeamById;