From b2bb704b100baf7311e860a505b6acac8cade9a5 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 18 May 2020 13:18:58 +0200 Subject: [PATCH] Fix bad routes --- assets/js/components/posts/interface.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/components/posts/interface.js b/assets/js/components/posts/interface.js index 6b970d1f..aed6e083 100644 --- a/assets/js/components/posts/interface.js +++ b/assets/js/components/posts/interface.js @@ -236,7 +236,7 @@ const PostsInterface = { * @param {String} choice The value of the choice */ createSurveyChoice: async function(postID, choice) { - await api("survey/create_new_choice", { + await api("surveys/create_new_choice", { postID: postID, choice: choice }, true); @@ -248,7 +248,7 @@ const PostsInterface = { * @param {number} postID The ID of the target post */ blockNewSurveyChoices: async function(postID) { - await api("survey/block_new_choices_creation", { + await api("surveys/block_new_choices_creation", { postID: postID }, true); },