-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aa30c79
commit 6e8a529
Showing
20 changed files
with
198 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
"""Defines the authentication endpoints for the API.""" | ||
|
||
from fastapi import APIRouter | ||
|
||
from store.app.routers.auth.api import router as api_router | ||
from store.app.routers.auth.email import router as email_router | ||
from store.app.routers.auth.github import router as github_router | ||
from store.app.routers.auth.google import router as google_router | ||
|
||
router = APIRouter() | ||
|
||
router.include_router(api_router, prefix="/api") | ||
router.include_router(github_router, prefix="/github") | ||
router.include_router(google_router, prefix="/google") | ||
router.include_router(email_router, prefix="/email") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"""Defines authentication endpoints for API-related activities.""" | ||
|
||
from typing import Annotated | ||
|
||
from fastapi import APIRouter, Depends | ||
|
||
from store.app.db import Crud | ||
from store.app.security.requests import get_request_api_key_id | ||
|
||
router = APIRouter() | ||
|
||
|
||
@router.delete("/logout") | ||
async def logout_user_endpoint( | ||
token: Annotated[str, Depends(get_request_api_key_id)], | ||
crud: Annotated[Crud, Depends(Crud.get)], | ||
) -> bool: | ||
await crud.delete_api_key(token) | ||
return True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
"""Defines the teleoperation endpoints for the API.""" | ||
|
||
from fastapi import APIRouter | ||
|
||
from store.app.routers.teleop.webrtc import webrtc_router | ||
|
||
teleop_router = APIRouter() | ||
|
||
teleop_router.include_router(webrtc_router, prefix="/rtc") |
Oops, something went wrong.