fullstack-hy2020 / fullstack-hy2020.github.io

Home Page:https://fullstack-hy2020.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typo in 4d authorization example

Saurav-K-yadav opened this issue · comments

Typo

The current POSTMAN and REST client example to add new note using authorization token is as follow:

Given Example
Here the Authorization field has bearer but controllers/notes.js file is as follow:
notes.js
Matching is done with 'Bearer ' as a result of which the POSTMAN request gives following error:
POSTMAN error

Fix

The example should use 'Bearer ' instead of 'bearer ' like:
Corrected Version
The REST client example should be updated the same.