Skip to content

Commit

Permalink
fixed a problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Kavipatel0 committed Sep 9, 2024
1 parent 03e7b30 commit 6483a56
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions server/src/routes/auth/email.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Router } from "express";
import Mailgun from "mailgun.js";

const authUserEmailRoute = Router();
const authEmailRoute = Router();

authUserEmailRoute.post("/verify", async (req, res) => {
authEmailRoute.post("/verify", async (req, res) => {
let query = "";
try {
if (req.query.email) {
Expand Down Expand Up @@ -36,4 +36,4 @@ authUserEmailRoute.post("/verify", async (req, res) => {
}
});

export default authUserEmailRoute;
export default authEmailRoute;
4 changes: 2 additions & 2 deletions server/src/routes/auth/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Router } from "express";
import authUserEmailRoute from "./email";
import authEmailRoute from "./email";

const authRouter = Router();


authRouter.use(authUserEmailRoute);
authRouter.use(authEmailRoute);


export default authRouter;

0 comments on commit 6483a56

Please sign in to comment.