const express = require('express');
const path = require('path');
const app = express();
const PORT = 3001;

// Serve static files from the root directory
app.use(express.static('.'));

// Route for the main page
app.get('/', (req, res) => {
  res.sendFile(path.join(__dirname, 'index.html'));
});

// Start the server
app.listen(PORT, '0.0.0.0', () => {
  console.log(`EternalAI server is running on http://0.0.0.0:${PORT}`);
});
