API: Migrate universal routes to core
Place OAI specific routes in the appropriate folder. This is in preperation for adding new API servers that can be optionally enabled. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
parent
64c2cc85c9
commit
9ad69e8ab6
13 changed files with 442 additions and 427 deletions
|
|
@ -5,6 +5,7 @@ from loguru import logger
|
|||
|
||||
from common.logger import UVICORN_LOG_CONFIG
|
||||
from common.networking import get_global_depends
|
||||
from endpoints.core.router import router as CoreRouter
|
||||
from endpoints.OAI.router import router as OAIRouter
|
||||
|
||||
|
||||
|
|
@ -32,6 +33,9 @@ def setup_app():
|
|||
|
||||
app.include_router(OAIRouter)
|
||||
|
||||
# Include core API request paths
|
||||
app.include_router(CoreRouter)
|
||||
|
||||
return app
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue