PromucFlow_constructor/app/client/src/api/WidgetSidebarApi.tsx
2019-10-18 08:16:26 +00:00

17 lines
431 B
TypeScript

import Api from "./Api";
import { WidgetCardProps } from "../widgets/BaseWidget";
export interface WidgetSidebarResponse {
cards: { [id: string]: WidgetCardProps[] };
}
// export interface WidgetCardsPaneRequest {}
class WidgetSidebarApi extends Api {
static url = "/widgetCards";
static fetchWidgetCards(): Promise<WidgetSidebarResponse> {
return Api.get(WidgetSidebarApi.url);
}
}
export default WidgetSidebarApi;