Skip to content

Commit

Permalink
fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Mari-W committed Jul 6, 2023
1 parent cad8793 commit 7dd1e28
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,24 +36,24 @@ async def startup():
# Routes


@app.get("/auth/login")
@app.get("/discord/auth/login")
async def auth_login(request: Request):
return await login(request)


@app.get("/auth/logout")
@app.get("/discord/auth/logout")
async def auth_logout(request: Request):
return await logout(request)


@app.get("/token")
@app.get("/discord/token")
# maximum of 1 token every six second
@limiter.limit("10/minute")
async def auth_token(request: Request):
return await token(request)


@app.get("/auth/callback")
@app.get("/discord/auth/callback")
async def auth_callback(request: Request):
return await callback(request)

Expand Down

0 comments on commit 7dd1e28

Please sign in to comment.