Mercurial > gemma
diff client/src/components/systemconfiguration/PDFTemplates.vue @ 3222:83e8e1ea0aff
print_templates: changed route /templates/print to /templates and /templates/print/... to /templates/
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 09 May 2019 15:14:12 +0200 |
parents | 94935895e6d7 |
children | 6d4d8e7ef881 |
line wrap: on
line diff
--- a/client/src/components/systemconfiguration/PDFTemplates.vue Thu May 09 15:07:09 2019 +0200 +++ b/client/src/components/systemconfiguration/PDFTemplates.vue Thu May 09 15:14:12 2019 +0200 @@ -113,7 +113,7 @@ element.style.display = "none"; element.setAttribute("download", template.name + ".json"); document.body.appendChild(element); - HTTP.get("/templates/print/" + template.name, { + HTTP.get("/templates/" + template.name, { headers: { "X-Gemma-Auth": localStorage.getItem("token"), "Content-type": "text/xml; charset=UTF-8" @@ -255,7 +255,7 @@ reader.readAsText(this.$refs.uploadTemplate.files[0]); }, loadTemplates() { - HTTP.get("/templates/print", { + HTTP.get("/templates", { headers: { "X-Gemma-Auth": localStorage.getItem("token"), "Content-type": "text/xml; charset=UTF-8"