budibase/packages/frontend-core/src/api/routes.js

17 lines
320 B
JavaScript
Raw Normal View History

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