Initial commit
This commit is contained in:
15
server.mjs
Normal file
15
server.mjs
Normal file
@@ -0,0 +1,15 @@
|
||||
import express from 'express';
|
||||
//import { WebSocketServer } from 'ws';
|
||||
import http from 'node:http';
|
||||
import serveIndex from 'serve-index';
|
||||
|
||||
const app = express();
|
||||
const server = http.createServer(app);
|
||||
//const wss = new WebSocketServer({ noServer: true });
|
||||
|
||||
|
||||
|
||||
app.use('/', express.static('static', { index: [] }), serveIndex('static', { icons: true }));
|
||||
|
||||
|
||||
server.listen(3535);
|
||||
Reference in New Issue
Block a user