init
This commit is contained in:
19
src/medical_info/app.py
Normal file
19
src/medical_info/app.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from fastapi import FastAPI
|
||||
|
||||
def create_app() -> FastAPI:
|
||||
app = FastAPI (
|
||||
title='medical_info',
|
||||
description='Medical Information Service',
|
||||
version='1.0'
|
||||
)
|
||||
|
||||
@app.get('/health')
|
||||
async def health() -> str:
|
||||
return 'ok'
|
||||
|
||||
|
||||
from medical_info.routers import medical_cards
|
||||
|
||||
app.include_router(medical_cards.router)
|
||||
|
||||
return app
|
||||
Reference in New Issue
Block a user