Skip to content

Commit

Permalink
Merge pull request Bridgeconn#768 from shimilgithub/api-refactor
Browse files Browse the repository at this point in the history
Integrating Auth Access with Vachan API
  • Loading branch information
shimilgithub authored Feb 9, 2024
2 parents fe2df46 + c027d97 commit 29f6340
Show file tree
Hide file tree
Showing 8 changed files with 1,112 additions and 886 deletions.
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

0 comments on commit 29f6340

Please sign in to comment.