// server/routes/auth.js
import express from "express";

const router = express.Router();

router.get("/api", (req, res) => {
  res.json({ data: "hello world from nodejs api" });
});

export default router;

// server/server.js
// import
import authRoutes from "./routes/auth.js";

// apply as middleware
app.use("/", authRoutes);