aboutsummaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
Diffstat (limited to 'src/web')
-rw-r--r--src/web/index.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/web/index.html b/src/web/index.html
new file mode 100644
index 0000000..8721acc
--- /dev/null
+++ b/src/web/index.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title></title>
+</head>
+<body>
+ <div align="center">
+ <h1>modpack webpage</h1>
+ <p>here is a list of modpacks</p>
+
+ <div id="modpacks"></div>
+ </div>
+
+ <script type="text/javascript">
+ fetch("/modpacklist")
+ .then(res=>res.json())
+ .then(res=>{
+ res.forEach(modpack_name=>{
+ modpacks.innerHTML+='<div><a href="/modpacks/'+modpack_name+
+ '">'+modpack_name+'</div>';
+ })
+ })
+ </script>
+</body>
+</html> \ No newline at end of file