Total Complexity | 1 |
Complexity/F | 0 |
Lines of Code | 10 |
Function Count | 0 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { baseUrl } from "./base"; |
||
2 | import { User } from "../models/types"; |
||
3 | |||
4 | export const getAllUsersEndpoint = (ids = ""): string => |
||
5 | ids.length > 0 ? `${baseUrl()}/users/?id=${ids}` : `${baseUrl()}/users/`; |
||
6 | export const parseAllUsersResponse = (data: any): User[] => data; |
||
7 | |||
8 | export const getUserEndpoint = (id: number): string => |
||
9 | `${baseUrl()}/users/${id}`; |
||
10 |