From d5fba18a97210cfeb3649579dce7e4e713566b09 Mon Sep 17 00:00:00 2001 From: Valeria Fadeeva Date: Tue, 12 Dec 2023 13:29:14 +0500 Subject: [PATCH] Update --- public/{json/index.js => assets/js/mastodon.js} | 4 ++-- public/json/index.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename public/{json/index.js => assets/js/mastodon.js} (97%) 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 @@
- +