17 lines
499 B
Python
17 lines
499 B
Python
from __future__ import annotations
|
|
|
|
from fastapi import APIRouter
|
|
from starlette.responses import JSONResponse
|
|
|
|
from ..core.response import error_response
|
|
|
|
router = APIRouter(prefix="/ai-steward", tags=["AI Steward Legacy"])
|
|
|
|
|
|
@router.post("/project-from-text")
|
|
async def create_project_from_text_legacy_gone():
|
|
return JSONResponse(
|
|
status_code=410,
|
|
content=error_response(410, "旧项目创建入口已下线,请使用新项目启动台生成草案并确认创建。"),
|
|
)
|