admin-dashboard/backend/index.js

15 lines
309 B
JavaScript
Raw Normal View History

2025-01-27 13:58:18 +00:00
config();
import { config } from "dotenv";
import express from "express";
const PORT = process.env.PORT;
const app = express();
// Test endpoint
app.get("/", (req, res) =>
res.status(200).json({ message: "API is working!" })
);
app.listen(PORT, () => console.log(`Server started on port = ${PORT}`));