16 lines
377 B
JavaScript
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);
|