Skip to content

Commit

Permalink
Merge pull request #169 from Real-Dev-Squad/fix/post-roles-authorizaiotn
Browse files Browse the repository at this point in the history
Removes bot auth for POST /roles
  • Loading branch information
prakashchoudhary07 authored Dec 15, 2023
2 parents d2ce324 + a6f878a commit e1a6486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ router.all("*", async () => {

export default {
async fetch(request: Request, env: env): Promise<Response> {
const apiUrls = ["/invite"];
const apiUrls = ["/invite", "/roles"];
const url = new URL(request.url);
if (request.method === "POST" && !apiUrls.includes(url.pathname)) {
const isVerifiedRequest = await verifyBot(request, env);
Expand Down

0 comments on commit e1a6486

Please sign in to comment.