summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorPhysick <96335032+DegustatorPonos@users.noreply.github.com>2025-12-06 12:05:43 +0500
committerPhysick <96335032+DegustatorPonos@users.noreply.github.com>2025-12-06 12:05:43 +0500
commit5fd81183f54662fdf08549c0d635e80166c62fe9 (patch)
tree0b730dd4f19c7446fabcc2ee7cc7313e94e67fe3 /static
initial endpoints
Diffstat (limited to 'static')
-rw-r--r--static/index.html9
-rw-r--r--static/index.js5
2 files changed, 14 insertions, 0 deletions
diff --git a/static/index.html b/static/index.html
new file mode 100644
index 0000000..8f1caf6
--- /dev/null
+++ b/static/index.html
@@ -0,0 +1,9 @@
+<html>
+ <head>
+ <script src="./index.js"></script>
+ </head>
+ <body>
+ <h1> xdx </h1>
+ <button onclick="GetSongs()"> Get songs </button>
+ </body>
+</html>
diff --git a/static/index.js b/static/index.js
new file mode 100644
index 0000000..9f5070b
--- /dev/null
+++ b/static/index.js
@@ -0,0 +1,5 @@
+function GetSongs() {
+ fetch("/api/getSongs").then(r => r.json().then(body => {
+ console.log(body);
+ }));
+}