SumOfUs/Champaign

View on GitHub
app/javascript/modules/api/resources/pages.ts

Summary

Maintainability
A
1 hr
Test Coverage
import { client, IApiResponse } from '../index';

export default {
  validateForm(pageId: number | string, payload: any): Promise<IApiResponse> {
    return client.post(`/api/pages/${pageId}/actions/validate`, payload);
  },

  createAction(pageId: number | string, payload: any): Promise<IApiResponse> {
    return client.post(`/api/pages/${pageId}/actions`, payload);
  },
};