Commit 20991bec authored by David Foucher's avatar David Foucher

Explorer : change api path to relative

parent 71d2f586
Pipeline #2073 failed with stage
in 1 minute and 5 seconds
......@@ -7,3 +7,4 @@ build/
dist/
.coverage
htmlcov/
.envrc
......@@ -16,7 +16,7 @@ function renderLabel (key, value) {
function init () {
fetch('/explore/schema')
fetch('../explore/schema')
.then((response) => response.json())
.then((data) => {
SCHEMA = data
......
......@@ -16,7 +16,7 @@
this.results = []
this.get = (id) => {
fetch(`/explore/catalog?id=${id}`)
fetch(`../explore/catalog?id=${id}`)
.then((response) => response.text())
.then((data) => {
this.xml = data
......
......@@ -13,7 +13,7 @@
this.on('mount', () => this.load())
this.load = () => {
fetch('/explore/financements')
fetch('../explore/financements')
.then((response) => response.json())
.then(data => {
this.financements = data
......
......@@ -12,7 +12,7 @@
<script>
this.items = []
fetch('/explore/glossary')
fetch('../explore/glossary')
.then((response) => response.json())
.then((data) => {
this.items = data
......
......@@ -32,7 +32,7 @@
this.load = () => {
if (RULES) return this.load_data(RULES)
fetch('/explore/rules')
fetch('../explore/rules')
.then((response) => response.json())
.then(this.load_data)
}
......
......@@ -62,7 +62,7 @@
}
this.decodeLBFURL = (url, callback) => {
fetch(`/explore/decode-lbf-url?url=${encodeURIComponent(url)}`)
fetch(`../explore/decode-lbf-url?url=${encodeURIComponent(url)}`)
.then((response) => this.handleResponse(response, callback))
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment