diff --git a/public/json/index.js b/public/assets/js/mastodon.js similarity index 97% rename from public/json/index.js rename to public/assets/js/mastodon.js index 0c1e9f1..2b2b767 100644 --- a/public/json/index.js +++ b/public/assets/js/mastodon.js @@ -1,4 +1,4 @@ -let tplUrl = 'mas-tpl.html'; +let tplUrl = 'json/mas-tpl.html'; let response = await fetch(tplUrl); var tpl = ""; let log = document.getElementById('log'); @@ -32,7 +32,7 @@ async function fetchData() { var server_address = `techhub.social`; - const response = await fetch('posts.json'); + const response = await fetch('json/posts.json'); // const response = await fetch(`https://${server_address}/api/v1/accounts/111518136987654656/statuses`); diff --git a/public/json/index.html b/public/json/index.html index c23020f..080e7d2 100644 --- a/public/json/index.html +++ b/public/json/index.html @@ -5,6 +5,6 @@
- +