Fix apib signup test

pull/32/head
Florian Hartwich 2018-03-20 13:15:23 +01:00
parent c3f5c3f971
commit 7b58dac768
3 changed files with 3 additions and 4 deletions

View File

@ -2,7 +2,7 @@
Create a new application user account. Create a new application user account.
+ Request Create Account + Request Create Account (application/json)
+ Attributes (Registration) + Attributes (Registration)

View File

@ -21,8 +21,7 @@ https://cc.myserver.lan/api/
## Authentication ## Authentication
Requests to the API have to be authenticated using an API token which is received after successfully providing your application credentials to the API. Requests to most of the API endpoints have to be authenticated using an API token which is received after successfully providing your application credentials to the API.
Once acquired the token has to be provided in the ``X-Access-Token`` header of every request that requires authentication. Once acquired the token has to be provided in the ``X-Access-Token`` header of every request that requires authentication.

View File

@ -78,7 +78,7 @@ authenticate.route('/signup')
.post((req, res, next) => { .post((req, res, next) => {
create(req.body) create(req.body)
.then(() => { .then(() => {
res.sendStatus(200); res.sendStatus(201);
}) })
.catch((err) => { .catch((err) => {
res.status(400).send(err); res.status(400).send(err);