createSimplePage method

Future<SimplePage> createSimplePage(
  1. String title,
  2. String content
)

Creates a new simple page with the given data

Implementation

Future<SimplePage> createSimplePage(String title, String content) async {
  final response = await _post('/api/simple-page', data: {
    'title': title,
    'content': content,
  });

  return SimplePage.fromJson(response.data);
}