20 lines
377 B
JavaScript
20 lines
377 B
JavaScript
export const buildRouteEndpoints = API => ({
|
|
/**
|
|
* Fetches available routes for the client app.
|
|
*/
|
|
fetchClientAppRoutes: async () => {
|
|
return await API.get({
|
|
url: `/api/routing/client`,
|
|
})
|
|
},
|
|
|
|
/**
|
|
* Fetches all routes for the current app.
|
|
*/
|
|
fetchAppRoutes: async () => {
|
|
return await API.get({
|
|
url: "/api/routing",
|
|
})
|
|
},
|
|
})
|