Files
TIS-website/run.js
2023-10-02 11:39:58 +03:00

15 lines
422 B
JavaScript

const express = require('express');
const path = require('path');
const app = express();
app.use(express.static(path.join(__dirname, 'webpage/public')));
app.get('/', async(req, res) => {
res.sendFile(path.join(__dirname, 'public', 'index.html'));
// res.sendFile(path.join(__dirname, 'webpage/public', 'index.html'));
});
app.listen(80, () => {
console.log("Server successfully running on port 8080");
});