endpoint:
POST
- /create
Only accept title, and content key e.g
{
title: 'New post',
content: 'lorem ipsum dolor'
}
any other key specified will return error
Display all available topics
endpoint:
GET
- /
GET
- /show
endpoint:
GET
- /topics/:index
endpoint:
DELETE
- /topics/:index
endpoint:
PUT
- /upvote:index
endpoint:
PUT
- /downvote:index
- add remove topic
- add sort topic feature
- root route display all topics
- add get single topic route