Skip to content

Commit

Permalink
fixed cookie parser and typo error in cookie token
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiraj-ku committed Sep 9, 2024
1 parent a4c1bb7 commit dab63f6
Show file tree
Hide file tree
Showing 14 changed files with 308 additions and 306 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/node_modules
.env
/profile_photo
/profile_photo


#ignore specific file
src/utils/constants.js
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ app.use(express.urlencoded({ extended: true }));
app.use(express.json());

// cookie parser Middleware
app.use(cookieParser);
app.use(cookieParser());

// HTTP request logger middleware
app.use(morgan("tiny"));
Expand All @@ -33,7 +33,6 @@ const userRoute = require("./src/routes/userRoute");

// user route middleware
app.use("/user/new", userRoute);
app.use("/user/verify", userRoute);

const server = app.listen(PORT, () => {
console.log(`server is running on the port: ${PORT}`);
Expand Down
Loading

0 comments on commit dab63f6

Please sign in to comment.