Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrating Auth Access with Vachan API #768

Merged
merged 4 commits into from
Feb 9, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import db_models
from database import engine
from dependencies import get_db, log
from routers import auth_api
from auth.authentication import create_super_user
# pylint: enable=E0401

Expand All @@ -36,7 +35,8 @@
description=f"The server application that provides APIs to interact \
with the underlying Databases and modules in Vachan-Engine. \
\n • For Vachan-CMS docs: {root_url}/v2/cms/rest/docs,\
\n • For Vachan-TBT docs: {root_url}/v2/text/translate/token-based/docs")
\n • For Vachan-TBT docs: {root_url}/v2/text/translate/token-based/docs,\
\n • For Vachan-Auth Access docs: {root_url}/v2/auth-access/docs")
template = Jinja2Templates(directory="templates")
app.mount("/static", StaticFiles(directory="static"), name="static")

Expand Down Expand Up @@ -228,7 +228,7 @@ def test(request: Request,db_: Session = Depends(get_db)):
}
)

app.include_router(auth_api.router)
# app.include_router(auth_api.router)
# app.include_router(content_apis.router)
# app.include_router(media_api.router)
# app.include_router(filehandling_apis.router)
Expand All @@ -253,6 +253,7 @@ def custom_openapi():
underlying Databases \and modules in Vachan-Engine. "
f"<br> • <a href=\"{root_url}/v2/text/translate/token-based/docs\" > Vachan-TBT docs </a>"
f"<br> • <a href=\"{root_url}/v2/cms/rest/docs\" > Vachan-CMS docs </a>"
f"<br> • <a href=\"{root_url}/v2/auth-access/docs\" > Vachan-Auth Access docs </a>"
),
routes=app.routes
)
Expand Down
370 changes: 185 additions & 185 deletions app/test/conftest.py

Large diffs are not rendered by default.

Loading
Loading