diff --git a/proj/map/.index.html.swp b/proj/map/.index.html.swp
index 30da0dd..1d8c4d6 100644
Binary files a/proj/map/.index.html.swp and b/proj/map/.index.html.swp differ
diff --git a/proj/map/asset/js/.main.js.swp b/proj/map/asset/js/.main.js.swp
index 43612a1..316a6b2 100644
Binary files a/proj/map/asset/js/.main.js.swp and b/proj/map/asset/js/.main.js.swp differ
diff --git a/proj/map/asset/js/main.js b/proj/map/asset/js/main.js
index a120c0a..ee1b87b 100644
--- a/proj/map/asset/js/main.js
+++ b/proj/map/asset/js/main.js
@@ -1,3 +1,7 @@
+const dburl = "http://localhost:3000/db"
+//const dburl = "https://ed.brz9.dev/proj/map/asset/json/db.json"
+
+
Vue.component('Accordeon', {
template : `
@@ -81,7 +85,6 @@ let vm = new Vue({
data: {
currentLang: 'fr',
fdata: {},
- dburl : "https://ed.brz9.dev/proj/map/asset/json/db.json",
db : {},
db2 : {
restaurants : {
@@ -183,7 +186,7 @@ let vm = new Vue({
}
},
async getJDB(){
- const res = await fetch(this.dburl);
+ const res = await fetch(dburl);
const data = await res.json();
this.db = data;
},
@@ -198,7 +201,7 @@ let vm = new Vue({
created: function(){
console.log("about to call getJDB")
// this.getJDB();
- fetch("http://localhost:3000/db")
+ fetch(dburl)
.then(res => res.json())
.then(data => this.db = data)
.catch(err => console.log(err.message))
diff --git a/proj/map/asset/json/endpoint/.index.php.swp b/proj/map/asset/json/endpoint/.index.php.swp
new file mode 100644
index 0000000..cc6a2b5
Binary files /dev/null and b/proj/map/asset/json/endpoint/.index.php.swp differ
diff --git a/proj/map/asset/json/endpoint/index.php b/proj/map/asset/json/endpoint/index.php
new file mode 100644
index 0000000..6d71cb8
--- /dev/null
+++ b/proj/map/asset/json/endpoint/index.php
@@ -0,0 +1,90 @@
+
diff --git a/proj/map/index.html b/proj/map/index.html
index 87b7ec3..5405caa 100644
--- a/proj/map/index.html
+++ b/proj/map/index.html
@@ -42,9 +42,8 @@