mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-06-29 15:31:05 +08:00
9 lines
243 B
Python
9 lines
243 B
Python
|
|
from fastapi import FastAPI, Request
|
||
|
|
app = FastAPI()
|
||
|
|
@app.post("/")
|
||
|
|
async def echo(request: Request):
|
||
|
|
body = await request.body()
|
||
|
|
return body
|
||
|
|
if __name__ == "__main__":
|
||
|
|
import uvicorn
|
||
|
|
uvicorn.run(app, host="0.0.0.0", port=8000)
|