summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorLogan Hunt <loganhunt@simponic.xyz>2022-03-27 02:17:26 -0600
committerLogan Hunt <loganhunt@simponic.xyz>2022-03-27 02:17:26 -0600
commit4cabba2561f55ee6d068d631e3272ff7bf984b37 (patch)
tree1635ee664fa16287ec9058657afe5608df6d99a2 /index.js
downloadbbiy-4cabba2561f55ee6d068d631e3272ff7bf984b37.tar.gz
bbiy-4cabba2561f55ee6d068d631e3272ff7bf984b37.zip
Initial commit - a working dynamic loader with Express
Diffstat (limited to 'index.js')
-rw-r--r--index.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/index.js b/index.js
new file mode 100644
index 0000000..7b9af6d
--- /dev/null
+++ b/index.js
@@ -0,0 +1,13 @@
+const express = require('express');
+const path = require('path');
+
+const app = express();
+app.route('/').get((req, res) => {
+ res.sendFile(path.join(__dirname, 'index.html'));
+});
+
+app.use(express.static('.'));
+
+app.listen(3000, () => {
+ console.log('Listening on 3000');
+});