bcgov / mem-mmti-public

Lightweight version of the public interface for MMTI
Apache License 2.0
3 stars 27 forks source link

Add provider to retrieve content #405

Open sggerard opened 1 month ago

sggerard commented 1 month ago

Update Angular frontend with a provider to pull Content from the chosen CMS using either a REST or GraphQL API. Ensure provider is reusable across all content pages and pages are not rendered until content has been retrieved.

sggerard commented 2 days ago

Installed the GraphQL plugin on Strapi and the Apollo library on the BCMI front end to use GraphQL to fetch content from the CMS. Wrote a query extension in Strapi and a Anguler resolver to fetch the page content for the current route (url).