Skip to content

Commit

Permalink
[BREAKING] js: api: /new: Only send POST body
Browse files Browse the repository at this point in the history
In accordance with the previous commit, send all data as
POST instead of mixing and matching with query params.
  • Loading branch information
ix5 committed May 25, 2022
1 parent 64c9128 commit 124967e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion isso/js/app/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ var qs = function(params) {

var create = function(tid, data) {
var deferred = Q.defer();
curl("POST", endpoint + "/new?" + qs({uri: tid || location()}), JSON.stringify(data),
data.uri = tid || location();
curl("POST", endpoint + "/new", JSON.stringify(data),
function (rv) {
if (rv.status === 201 || rv.status === 202) {
deferred.resolve(JSON.parse(rv.body));
Expand Down

0 comments on commit 124967e

Please # to comment.