jillo-bot/src/web.ts

10 lines
256 B
TypeScript
Raw Normal View History

2023-11-17 21:11:50 +01:00
import express from 'express';
import * as log from './lib/log';
export async function startServer(port: number) {
const app = express();
app.use(express.static('static/'));
app.listen(port, () => log.info(`web interface listening on ${port}`));
}