This commit is contained in:
@@ -60,7 +60,7 @@ const oauth = (provider: string) => {
|
||||
|
||||
### 2. Backend Endpoints
|
||||
|
||||
#### GET `/auth/oauth/{provider}`
|
||||
#### GET `/oauth/{provider}`
|
||||
```python
|
||||
@router.get("/auth/oauth/{provider}")
|
||||
async def oauth_redirect(
|
||||
@@ -82,9 +82,9 @@ async def oauth_redirect(
|
||||
return RedirectResponse(url=oauth_url)
|
||||
```
|
||||
|
||||
#### GET `/auth/oauth/{provider}/callback`
|
||||
#### GET `/oauth/{provider}/callback`
|
||||
```python
|
||||
@router.get("/auth/oauth/{provider}/callback")
|
||||
@router.get("/oauth/{provider}/callback")
|
||||
async def oauth_callback(
|
||||
provider: str,
|
||||
code: str,
|
||||
|
||||
Reference in New Issue
Block a user