Skip to content

Commit 07cfbda

Browse files
Merge pull request #55 from DesmondSanctity/event-badging-submit-api
chore: make callback a get request
2 parents 2050a59 + 8985efa commit 07cfbda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routes/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ const setupRoutes = (app) => {
156156
app.get("/api/login", login);
157157

158158
//callbacks
159-
app.post("/api/callback/github", handleOAuthCallback);
160-
app.post("/api/callback/gitlab", handleOAuthCallbackGitlab);
159+
app.get("/api/callback/github", handleOAuthCallback);
160+
app.get("/api/callback/gitlab", handleOAuthCallbackGitlab);
161161

162162
app.get("/api/badgedRepos", badgedRepos);
163163
app.post("/api/repos-to-badge", reposToBadge);

0 commit comments

Comments
 (0)