Skip to content

Commit

Permalink
Update router.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
shrihari-prakash authored Jul 16, 2024
1 parent e1b8a29 commit 25abfa4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service/api/sso/google/router.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import express from "express";
import { Passport } from "../../../../singleton/passport.js";
import GET_GoogleCallback from "./callback.get.js";
import GET_GoogleSuccess from "./success.get.js";
import { POST_GoogleSuccessValidator }, POST_GoogleSuccess from "./success.get.js";

const GoogleRouter = express.Router();

Expand All @@ -14,7 +14,7 @@ GoogleRouter.get(

GoogleRouter.get("/callback", Passport.authenticate("google"), GET_GoogleCallback);

GoogleRouter.get("/success", GET_GoogleSuccess);
GoogleRouter.post("/success", GoogleSuccessValidator, POST_GoogleSuccess);

export default GoogleRouter;

0 comments on commit 25abfa4

Please sign in to comment.