export const api = {
get: {
one: async (endpoint:string) => //..... get one function,
many: async (endpoint:string) => // ..... get many function,
//.... many more get functions
},
document: {
getByPath: async (path:string) => // ....Get by path function
},
// .... many more functions
}
export const api = {
get: {
one: async (endpoint:string) => //..... get one function,
many: async (endpoint:string) => // ..... get many function,
//.... many more get functions
},
document: {
getByPath: async (path:string) => // ....Get by path function
},
// .... many more functions
}