From 8985efa9080408ac363dc9a8b03146a1ada11998 Mon Sep 17 00:00:00 2001 From: Desmond Obisi Date: Mon, 7 Oct 2024 13:32:31 +0100 Subject: [PATCH] chore: make callback a get request --- routes/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/index.js b/routes/index.js index 23f7357..ce193a9 100644 --- a/routes/index.js +++ b/routes/index.js @@ -156,8 +156,8 @@ const setupRoutes = (app) => { app.get("/api/login", login); //callbacks - app.post("/api/callback/github", handleOAuthCallback); - app.post("/api/callback/gitlab", handleOAuthCallbackGitlab); + app.get("/api/callback/github", handleOAuthCallback); + app.get("/api/callback/gitlab", handleOAuthCallbackGitlab); app.get("/api/badgedRepos", badgedRepos); app.post("/api/repos-to-badge", reposToBadge);