changed url import api call to post url

This commit is contained in:
vabene1111
2020-08-09 20:13:05 +02:00
parent 782d276724
commit a8b1ee9765
3 changed files with 5 additions and 3 deletions

View File

@@ -295,7 +295,7 @@
this.recipe_data = undefined
this.error = undefined
this.loading = true
this.$http.get("{% url 'api_recipe_from_url' 12345 %}".replace(/12345/, this.remote_url)).then((response) => {
this.$http.post("{% url 'api_recipe_from_url' %}", {'url' : this.remote_url}, {emulateJSON: true}).then((response) => {
this.recipe_data = response.data;
this.loading = false
}).catch((err) => {