Files
fs-event-based-activity-tra…/server.mjs
2026-02-19 00:18:50 +01:00

16 lines
377 B
JavaScript

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);