David-Rushton / Blog

Data dispatches
MIT License
0 stars 0 forks source link

Reduce blogdb traffic #78

Closed David-Rushton closed 4 years ago

David-Rushton commented 4 years ago

Every page imprint results in two calls to the blogdb. Get upvotes and get comments. Both retrieve the full article document. This is unnecessary and a waste of request units.

This PR adds a new API GET article and remove the GET method from the existing two.

Each article page will be updated to make one call to the GET article API, on page load. POST upvotes and comments will be called on demand.

Fixes #77

github-actions[bot] commented 4 years ago

Azure Static Web Apps: Your stage site is ready! Visit it here: https://witty-bay-0219c9d03-78.westeurope.azurestaticapps.net

github-actions[bot] commented 4 years ago

Azure Static Web Apps: Your stage site is ready! Visit it here: https://witty-bay-0219c9d03-78.westeurope.azurestaticapps.net

github-actions[bot] commented 4 years ago

Azure Static Web Apps: Your stage site is ready! Visit it here: https://witty-bay-0219c9d03-78.westeurope.azurestaticapps.net

github-actions[bot] commented 4 years ago

Azure Static Web Apps: Your stage site is ready! Visit it here: https://witty-bay-0219c9d03-78.westeurope.azurestaticapps.net

github-actions[bot] commented 4 years ago

Azure Static Web Apps: Your stage site is ready! Visit it here: https://witty-bay-0219c9d03-78.westeurope.azurestaticapps.net

github-actions[bot] commented 4 years ago

Azure Static Web Apps: Your stage site is ready! Visit it here: https://witty-bay-0219c9d03-78.westeurope.azurestaticapps.net