Skip to content

Commit

Permalink
LIMS-979: Use post requests for queueing/unqueueing
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Williams committed Jan 19, 2024
1 parent da3e06b commit 395de3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/Page/Sample.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class Sample extends Page
array('/sub/:ssid', 'put', '_update_sub_sample_full'),
array('/sub', 'post', '_add_sub_sample'),
array('/sub/:ssid', 'delete', '_delete_sub_sample'),
array('/sub/queue/cid/:cid', 'get', '_queue_all_sub_samples'),
array('/sub/queue/cid/:cid', 'post', '_queue_all_sub_samples'),
array('/sub/queue(/:BLSUBSAMPLEID)', 'get', '_pre_q_sub_sample'),

array('/plan', 'get', '_get_diffraction_plans'),
Expand Down
2 changes: 2 additions & 0 deletions client/src/js/modules/imaging/views/queuecontainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,7 @@ define(['marionette',
this.$el.addClass('loading');
Backbone.ajax({
url: app.apiurl+'/sample/sub/queue/cid/'+this.model.get('CONTAINERID'),
method: 'post',
data: {},
success: function(resp) {
_.each(resp, function (r) {
Expand Down Expand Up @@ -620,6 +621,7 @@ define(['marionette',
this.$el.addClass('loading');
Backbone.ajax({
url: app.apiurl+'/sample/sub/queue/cid/'+this.model.get('CONTAINERID'),
method: 'post',
data: {
queued: 1,
UNQUEUE: 1,
Expand Down

0 comments on commit 395de3d

Please sign in to comment.