UserSyncInterface / server.js
AUXteam's picture
Upload folder using huggingface_hub
17b60d4 verified
raw
history blame contribute delete
407 Bytes
const express = require('express');
const path = require('path');
const app = express();
const port = 7860;
app.use(express.static(path.join(__dirname, 'dist')));
app.get('/health', (req, res) => {
res.status(200).send('OK');
});
app.get('*', (req, res) => {
res.sendFile(path.join(__dirname, 'dist', 'index.html'));
});
app.listen(port, () => {
console.log(`Server running on port ${port}`);
});