Set response type to plaintext

This commit is contained in:
DingZQ
2023-02-19 21:46:17 +08:00
parent 39dfe2bd98
commit c5c526286b

View File

@@ -83,7 +83,7 @@ async def fastapi_import_inp(network: str, req: Request):
}
return import_inp(network, ChangeSet(ps))
@app.get("/exportinp/")
@app.get("/exportinp/", response_class = PlainTextResponse)
async def fastapi_export_inp(network: str):
return export_inp(network)