Files
cooney ccfdac1286 1. 랭체인 이미지 인식 후 처리 마무리
2. fastAPI로 프로젝트 구조 실습

1. 랭체인 이미지 인식 후 처리 마무리
2. fastAPI로 프로젝트 구조 실습
2026-06-15 18:13:05 +09:00

16 lines
511 B
Python

from fastapi import FastAPI
from starlette.staticfiles import StaticFiles
from backend.routers.page_router import router as page_router
from backend.routers.api_router import router as api_router
app = FastAPI()
app.include_router(page_router)
app.include_router(api_router)
# static 폴더 지정
app.mount("/static", StaticFiles(directory="backend/static"), name="static")
# http://127.0.0.1:8000/item/1 + GET
# @app.get("/item/{item_id}")
# async def read_item(item_id):
# return {"item_id" : item_id}