2025-12-10 23:03:59 +05:30

18 lines
350 B
JavaScript

const express = require("express");
const app = express();
app.use(express.json());
// Auth routes
app.use("/auth", require("./routes/auth"));
// Health check
app.get("/", (req, res) => {
res.send("Auth backend running ✅");
});
const PORT = 3001;
app.listen(PORT, () => {
console.log(`Auth server running on http://localhost:${PORT}`);
});