Rescue Paperjet v1 implementation
This commit is contained in:
parent
7ff5c8130d
commit
db9e2ca51b
83 changed files with 6186 additions and 3894 deletions
|
|
@ -2,9 +2,14 @@
|
|||
|
||||
from fastapi import APIRouter
|
||||
|
||||
from app.api.v1.annotations import router as annotations_router
|
||||
from app.api.v1.assets import router as assets_router
|
||||
from app.api.v1.auth import router as auth_router
|
||||
from app.api.v1.documents import router as documents_router
|
||||
from app.api.v1.export import router as export_router
|
||||
from app.api.v1.health import router as health_router
|
||||
from app.api.v1.versions import router as versions_router
|
||||
from app.config import settings
|
||||
|
||||
router = APIRouter(prefix="/api/v1")
|
||||
|
||||
|
|
@ -15,17 +20,18 @@ router.include_router(auth_router)
|
|||
router.include_router(documents_router)
|
||||
|
||||
# Assets
|
||||
from app.api.v1.assets import router as assets_router
|
||||
router.include_router(assets_router)
|
||||
|
||||
# Annotations
|
||||
from app.api.v1.annotations import router as annotations_router
|
||||
router.include_router(annotations_router)
|
||||
|
||||
# Versions and export
|
||||
router.include_router(versions_router)
|
||||
router.include_router(export_router)
|
||||
|
||||
# Health (unauthenticated)
|
||||
router.include_router(health_router)
|
||||
|
||||
from app.config import settings
|
||||
if settings.DEBUG:
|
||||
from app.api.v1.debug import router as debug_router
|
||||
router.include_router(debug_router)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue