Skip to content
Snippets Groups Projects
index.ts 385 B
Newer Older
import express from 'express';
import { port, web_serve } from './config';
if (web_serve) {
    app.use('/', express.static(web_serve));
    app.get('/', (_, res) => {
        res.sendFile('index.html', { root: web_serve });
    });
}