const express = require('express');
const cors = require('cors');
const app = express();

app.use(cors());
app.use(express.json());

app.post('/api/auth/school/login', (req, res) => {
  console.log('Login request received:', req.body);
  res.json({
    token: 'test-token',
    user: {
      id: 1,
      email: 'school@greenvalley.com',
      name: 'Test School',
      role: 'school'
    }
  });
});

app.listen(3002, () => {
  console.log('Test server running on port 3002');
});