RamshaAnwar commited on
Commit
f7d6cd3
·
1 Parent(s): 2c28073

feat(api): add app factory and healthz endpoint

Browse files
app/__init__.py ADDED
File without changes
app/main.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from fastapi import FastAPI
2
+
3
+
4
+ def create_app() -> FastAPI:
5
+ app = FastAPI(
6
+ title="ContextQuery AI",
7
+ version="0.1.0",
8
+ docs_url="/docs",
9
+ redoc_url=None,
10
+ )
11
+
12
+ @app.get("/healthz", tags=["system"])
13
+ def healthz() -> dict[str, str]:
14
+ return {"status": "ok"}
15
+
16
+ return app
17
+
18
+
19
+ app = create_app()
app/routers/__init__.py ADDED
File without changes
app/services/__init__.py ADDED
File without changes