allow 202 response to PUT

This commit is contained in:
Dave Horton committed 2021-08-11 11:13:42 -04:00
1 parent a74027ebff
commit ce28a9975b
4 files changed
+1396 -1472

No files matched your search

+1 -1
View File
@@ -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);