You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For this website, we plan to have a admin page to create blogs so that they don't have to write in html and design the css for every blog - just a normal wysiwyg editor will be there that will be adding blogs directly to client/blogs.json. This json file is being parsed by the backend and subsequently, the various endpoints for the blogs are being exposed. [ Read the format of blog.json - everything will be filled from a form available in frontend ]
To expose the endpoints, what I have currently configured is when the server starts, the various documents from the json file are taken and a route for each of them is declared using the url key for each blog document.
Changes needed
Instead of exposing a route for each blog, we need to have a single /blog/:id endpoint where the id will be mapped from the url key of the blogs.
The text was updated successfully, but these errors were encountered:
Preface
For this website, we plan to have a admin page to create blogs so that they don't have to write in html and design the css for every blog - just a normal wysiwyg editor will be there that will be adding blogs directly to
client/blogs.json
. This json file is being parsed by the backend and subsequently, the various endpoints for the blogs are being exposed. [ Read the format of blog.json - everything will be filled from a form available in frontend ]To expose the endpoints, what I have currently configured is when the server starts, the various documents from the json file are taken and a route for each of them is declared using the
url
key for each blog document.Changes needed
Instead of exposing a route for each blog, we need to have a single
/blog/:id
endpoint where the id will be mapped from theurl
key of the blogs.The text was updated successfully, but these errors were encountered: