Add all resources, change paths

This commit is contained in:
Christoph Hagen
2022-02-10 16:18:50 +01:00
parent 7d49e8a7ed
commit 4e7e01f203
8 changed files with 85 additions and 21 deletions

View File

@@ -47,7 +47,7 @@ function catchErrors(error) {
}
async function performRequest(name, path) {
let text = await fetch("festival/api/" + path, {
let text = await fetch("/festival/api/" + path, {
method: 'POST',
body: name
}).then(handleErrors).catch(catchErrors);
@@ -59,6 +59,6 @@ async function performRequest(name, path) {
return false;
}
function downloadEvent(file) {
window.location= "files/" + file
}
function download(file) {
window.location = file
}