hacktiv-press

list User routes

Route HTTP Description
/api/register POST register
/api/login POST login
/api/users GET get all users admin only (coming soon)
/api/users/:id GET get detail user (user authorization)
/api/users/:id PUT edit user (user authorization (coming soon))
/api/users/articles GET get all articles
/api/users/articles POST add article (user authentication)
/api/users/articles/:id GET get detail article
/api/users/articles/:id PUT edit article (user authorization)
/api/users/articles/:id DELETE delete article (user authorization)
/api/users/articles/category/:category GET get article by category

usage

$ npm run dev
$ npm start

ACCESS API VIA

`http://localhost:3000