发布第一款

This commit is contained in:
yml2213
2021-12-29 16:05:53 +08:00
commit ae57e78caa
5175 changed files with 877264 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
'use strict';
const express = require('express');
const ecstatic = require('../lib/ecstatic');
const http = require('http');
const app = express();
app.use(ecstatic({
root: `${__dirname}/public`,
showdir: true,
}));
http.createServer(app).listen(8080);
console.log('Listening on :8080');