mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 05:49:22 +00:00
Fix bad routes
This commit is contained in:
parent
4f417e1299
commit
b2bb704b10
@ -236,7 +236,7 @@ const PostsInterface = {
|
|||||||
* @param {String} choice The value of the choice
|
* @param {String} choice The value of the choice
|
||||||
*/
|
*/
|
||||||
createSurveyChoice: async function(postID, choice) {
|
createSurveyChoice: async function(postID, choice) {
|
||||||
await api("survey/create_new_choice", {
|
await api("surveys/create_new_choice", {
|
||||||
postID: postID,
|
postID: postID,
|
||||||
choice: choice
|
choice: choice
|
||||||
}, true);
|
}, true);
|
||||||
@ -248,7 +248,7 @@ const PostsInterface = {
|
|||||||
* @param {number} postID The ID of the target post
|
* @param {number} postID The ID of the target post
|
||||||
*/
|
*/
|
||||||
blockNewSurveyChoices: async function(postID) {
|
blockNewSurveyChoices: async function(postID) {
|
||||||
await api("survey/block_new_choices_creation", {
|
await api("surveys/block_new_choices_creation", {
|
||||||
postID: postID
|
postID: postID
|
||||||
}, true);
|
}, true);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user