]> gitweb.ps.run Git - lolstats/commitdiff
adapted server to static file path
authorPatrick Schönberger <patrick.schoenberger@posteo.de>
Mon, 10 Dec 2018 17:57:01 +0000 (18:57 +0100)
committerPatrick Schönberger <patrick.schoenberger@posteo.de>
Mon, 10 Dec 2018 17:57:01 +0000 (18:57 +0100)
index.js

index 2f251888db954f41339028a879d4af6714205d04..3cc465ebf78b80163463c15a494ba450bf67a7d8 100644 (file)
--- a/index.js
+++ b/index.js
@@ -5,9 +5,9 @@ const app = express()
 const port = 3000
 
 let rules = [
-  ["/", "index.html"],
-  ["/script.js", "script.js"],
-  ["/style.css", "style.css"],
+  ["/lol", "index.html"],
+  ["/lol/script.js", "script.js"],
+  ["/lol/style.css", "style.css"],
 ];
 
 let obfuscateJs = false;