chore: wire documents router into main.py for testing
This commit is contained in:
parent
5b4bc4e719
commit
6633cab98e
@ -2,6 +2,7 @@ from fastapi import FastAPI
|
|||||||
from fastapi.middleware.cors import CORSMiddleware
|
from fastapi.middleware.cors import CORSMiddleware
|
||||||
|
|
||||||
from app.config import settings
|
from app.config import settings
|
||||||
|
from app.routers import documents
|
||||||
|
|
||||||
app = FastAPI(title="DocHub API")
|
app = FastAPI(title="DocHub API")
|
||||||
|
|
||||||
@ -13,6 +14,8 @@ app.add_middleware(
|
|||||||
allow_headers=["*"],
|
allow_headers=["*"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
app.include_router(documents.router)
|
||||||
|
|
||||||
|
|
||||||
@app.get("/health")
|
@app.get("/health")
|
||||||
def health():
|
def health():
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user