-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Yos666666 edited this page Sep 14, 2021
·
5 revisions
- Install aquila-connector :
npm i aquila-connector
- Let's code : Just get a specific page
import { getPageStatic } from 'aquila-connector/api/static';
const staticPage = await getPageStatic("my_slug", "fr");
- Please note that some Aquila CMS API routes require a JWT. It is necessary to pass it via axios in the theme using aquila-connector :
import axios from 'aquila-connector/lib/AxiosInstance'; // Import axios instance from aquila-connector
axios.defaults.headers.common['Authorization'] = 'JWT'; // Set JWT