Update routing endpoints

This commit is contained in:
Andrew Kingston 2024-12-05 15:51:14 +00:00
parent dd9cd6d93e
commit b025878834
No known key found for this signature in database
1 changed files with 6 additions and 2 deletions

View File

@ -1,9 +1,13 @@
import {
FetchClientScreenRoutingResponse,
FetchScreenRoutingResponse,
} from "@budibase/types"
import { BaseAPIClient } from "./types" import { BaseAPIClient } from "./types"
export interface RouteEndpoints { export interface RouteEndpoints {
// Missing request or response types // Missing request or response types
fetchClientAppRoutes: () => Promise<{ routes: any }> fetchClientAppRoutes: () => Promise<FetchClientScreenRoutingResponse>
fetchAppRoutes: () => Promise<{ routes: any }> fetchAppRoutes: () => Promise<FetchScreenRoutingResponse>
} }
export const buildRouteEndpoints = (API: BaseAPIClient): RouteEndpoints => ({ export const buildRouteEndpoints = (API: BaseAPIClient): RouteEndpoints => ({