import express from 'express';
import { createServer } from 'http';

// Simple test to see if we can get a response
const app = express();
app.use(express.json());

app.get('/health', (_req, res) => {
  console.log('Health endpoint hit');
  res.json({ status: 'ok' });
});

const server = createServer(app);
server.listen(3001, () => {
  console.log('Test server listening on port 3001');
});