added to routes for the user auth
All checks were successful
gitea/MERN_STACK_TEMPLATE/pipeline/head This commit looks good
All checks were successful
gitea/MERN_STACK_TEMPLATE/pipeline/head This commit looks good
This commit is contained in:
@ -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");
|
||||
});
|
||||
|
Reference in New Issue
Block a user