// controllers/auth.js
export const hello = (req, res) => {
  res.json({ data: "hello world from nodejs api" });
};

// routes/auth.js
import * as auth from "../controllers/auth.js";

router.get("/", auth.hello);