The framework will always check for a token on POST requests. Here is an example:
app.post('/user/create', userCreate);
app.get('/user/create', userCreate);
function userCreate(req, res) {
res.json({json:'Jay SON'});
return;
}
The get requests returns correctly, the post request returns the following:
{
"code": "BadRequestError",
"message": "Bearer token required. Follow the oauth2-token link to get one!"
}
The framework will always check for a token on POST requests. Here is an example:
The get requests returns correctly, the post request returns the following: