major changes:

- introduce flask cache
- use replaceAll together with encodeURI component on client
- many more
This commit is contained in:
geoffrey45
2021-12-19 13:27:37 +03:00
parent 831b8e7ee2
commit 7e67b819f0
8 changed files with 78 additions and 43 deletions
+4 -2
View File
@@ -6,11 +6,13 @@ const getData = async (path, last_id) => {
let url;
const songs = ref(null);
const folders = ref(null);
path = encodeURIComponent(path.replaceAll("/", "|"));
if (last_id) {
url = `${folders_uri}/?f=${path}&last_id=${last_id}`;
url = `${folders_uri}/f/${path}::${last_id}`;
} else {
url = url = `${folders_uri}/?f=${path}`;
url = url = `${folders_uri}/f/${path}`;
}
const res = await fetch(url);