19 lines
593 B
JavaScript

export const WP_API_CONFIG = {
// Use the domain provided by the user.
// IMPORTANT: Ensure WordPress Permalinks are set to 'Post name' for this base URL to work,
// or use the plain parameter structure if not.
// For Headless, /wp-json is the standard REST API endpoint.
BASE_URL: 'https://api.sokuree.com/wp-json',
// Endpoints typically used
ENDPOINTS: {
POSTS: '/wp/v2/posts',
PAGES: '/wp/v2/pages',
MEDIA: '/wp/v2/media',
CATEGORIES: '/wp/v2/categories',
},
// Number of posts to fetch per page
PER_PAGE: 10
};