mirror of
https://github.com/jambonz/jambonz-node.git
synced 2026-10-30 07:04:26 +00:00
allow 202 response to PUT
This commit is contained in:
1 parent
a74027ebff
commit
ce28a9975b
4 files changed
+1396
-1472
No files matched your search
+1
-1
@@ -20,7 +20,7 @@ class Jambonz {
|
||||
const headers = {'Authorization': `Bearer ${apiKey}`};
|
||||
|
||||
const post = bent(baseUrl, 'POST', 'json', headers, 201);
|
||||
const put = bent(baseUrl, 'PUT', headers, 204);
|
||||
const put = bent(baseUrl, 'PUT', headers, 202, 204);
|
||||
const get = bent(baseUrl, 'GET', 'json', headers, 200);
|
||||
const del = bent(baseUrl, 'DELETE', headers, 204);
|
||||
|
||||
|
||||
Reference in new issue
Block a user