From 5e36934acdf1b2c7250a2ebdda76fa9bd7745da0 Mon Sep 17 00:00:00 2001 From: ChoiseU Date: Thu, 31 Jul 2025 22:51:29 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20api=20router=20=EB=8F=84=EC=9E=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/api_router.py | 5 +++++ app/main.py | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 app/api/api_router.py diff --git a/app/api/api_router.py b/app/api/api_router.py new file mode 100644 index 0000000..813de73 --- /dev/null +++ b/app/api/api_router.py @@ -0,0 +1,5 @@ +from fastapi import APIRouter + +api_router = APIRouter() + +# api_router.include_router(connect_driver.router, prefix="/connections", tags=["Driver"]) diff --git a/app/main.py b/app/main.py index 66a4d9f..5c37c8b 100644 --- a/app/main.py +++ b/app/main.py @@ -5,12 +5,13 @@ from app.api import health # 헬스 체크 from app.core.port import get_available_port # 동적 포트 할당 +from app.api.api_router import api_router app = FastAPI() # 헬스 체크 라우터 app.include_router(health.router) - +app.include_router(api_router, prefix="/api") @app.get("/") async def read_root():