refactor: Remove /upload prefix from upload router for better URL structure

This commit is contained in:
haneulai 2026-01-27 17:48:17 +09:00
parent d9de2e939b
commit d56a8f7ae1

View File

@ -10,13 +10,13 @@ import pandas as pd
from app.core.database import get_db from app.core.database import get_db
router = APIRouter( router = APIRouter(
prefix="/upload",
tags=["Upload"] tags=["Upload"]
) )
@router.post("/history") @router.post("/upload/history")
async def upload_history( async def upload_history(
file: UploadFile = File(..., description="엑셀 파일 (.xlsx, .xls)"), file: UploadFile = File(..., description="엑셀 파일 (.xlsx, .xls)"),
plant_id: str = Form(..., description="발전소 ID (예: nrems-01)"), plant_id: str = Form(..., description="발전소 ID (예: nrems-01)"),