A simple blog project for personal practice
- clone this repo
cd express-blog && npm i
npm start
Path | Method | params |
---|---|---|
/auth/login |
POST | email,password |
/auth/register |
POST | name,email,password |
/auth/logout |
POST | None |
Path | Method | params |
---|---|---|
/posts |
GET | None |
/posts |
POST | title,body, date |
/posts/:id |
GET | None |
/posts/:id |
PUT | title,body, date |
/posts/:id |
DELETE | None |
Run npm run test
or yarn test
to run tests