added to routes for the user auth
All checks were successful
gitea/MERN_STACK_TEMPLATE/pipeline/head This commit looks good

This commit is contained in:
2025-05-02 13:24:52 +02:00
parent a781c563d0
commit 7333cf79bd
7 changed files with 43 additions and 1 deletions

View File

@ -1,5 +1,11 @@
import express from "express";
import dotenv from "dotenv";
import {connectDB} from "./db/connectDB.js";
import authRoutes from "./routes/auth.route.js"
dotenv.config();
const app = express();
app.get("/", (req, res) => {
@ -7,6 +13,10 @@ app.get("/", (req, res) => {
});
app.use("/api/auth", authRoutes)
app.listen(8080, () => {
connectDB();
console.log("Server Started at 0.0.0.0:8080");
});