🔀 chore(router.py): add login_router to the APIRouter to include login functionality
🔀 chore(__init__.py): import and include login_router in the APIRouter to enable login functionality 🔀 chore(login.py): add tags to the login router to categorize it as "Login" in the API documentation
This commit is contained in:
parent
6b82b730cd
commit
43b2d62661
3 changed files with 5 additions and 1 deletions
|
|
@ -8,6 +8,7 @@ from langflow.api.v1 import (
|
||||||
component_router,
|
component_router,
|
||||||
users_router,
|
users_router,
|
||||||
api_key_router,
|
api_key_router,
|
||||||
|
login_router,
|
||||||
)
|
)
|
||||||
|
|
||||||
router = APIRouter(
|
router = APIRouter(
|
||||||
|
|
@ -20,3 +21,4 @@ router.include_router(component_router)
|
||||||
router.include_router(flows_router)
|
router.include_router(flows_router)
|
||||||
router.include_router(users_router)
|
router.include_router(users_router)
|
||||||
router.include_router(api_key_router)
|
router.include_router(api_key_router)
|
||||||
|
router.include_router(login_router)
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ from langflow.api.v1.flows import router as flows_router
|
||||||
from langflow.api.v1.components import router as component_router
|
from langflow.api.v1.components import router as component_router
|
||||||
from langflow.api.v1.users import router as users_router
|
from langflow.api.v1.users import router as users_router
|
||||||
from langflow.api.v1.api_key import router as api_key_router
|
from langflow.api.v1.api_key import router as api_key_router
|
||||||
|
from langflow.api.v1.login import router as login_router
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"chat_router",
|
"chat_router",
|
||||||
|
|
@ -14,4 +15,5 @@ __all__ = [
|
||||||
"flows_router",
|
"flows_router",
|
||||||
"users_router",
|
"users_router",
|
||||||
"api_key_router",
|
"api_key_router",
|
||||||
|
"login_router",
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ from langflow.services.auth.utils import (
|
||||||
|
|
||||||
from langflow.services.utils import get_settings_manager
|
from langflow.services.utils import get_settings_manager
|
||||||
|
|
||||||
router = APIRouter()
|
router = APIRouter(tags=["Login"])
|
||||||
|
|
||||||
|
|
||||||
@router.post("/login", response_model=Token)
|
@router.post("/login", response_model=Token)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue