Skip to content
Yos666666 edited this page Oct 6, 2022 · 6 revisions

/src/api/blog/index.js

Functions

Get a list of blog's posts

getBlogList(PostBody, lang)
  • PostBody - any : request body overload
  • lang - string? : current language ("fr" is the default value) - Optionnal
Example
import { getBlogList } from 'aquila-connector/api/blog';
const allPosts = await getBlogList("fr");
getBlogArticle(PostBody, preview, lang)
  • postBody - any : request body overload
  • preview - string? : Preview ID - Optionnal
  • lang - string? : current language ("fr" is the default value) - Optionnal
Example
import { getBlogArticle } from 'aquila-connector/api/blog';
const article = await getBlogArticle({ page: 1, limit: 15 });

Clone this wiki locally