- /create
-
Post
-
- Code: 200
Content:
{ message: "Success! A new post has been created", post: newPost, }
- Code: 200
Content:
-
- Code: 404
- /
-
Get
-
- Code: 200
Content:
{ message: "Success! All posts have been queried", posts }
- Code: 200
Content:
-
- Code: 404
- /get
-
Get
-
- Code: 200
Content:
{ message: "Success! A post has been queried", post }
- Code: 200
Content:
-
- Code: 404
Interested on running this project locally? Here's how.
# Clone this repository
git clone https://github.com/taufikalgi/simple-blog-backend
cd simple-blog-backend
# Install required dependency
npm install
# Run
npm start
Click Simple Blog - Frontend for the frontend