Jared 3 anni fa
commit
b0686c7084
1 ha cambiato i file con 19 aggiunte e 0 eliminazioni
  1. 19 0
      test1/main.py

+ 19 - 0
test1/main.py

@@ -0,0 +1,19 @@
+from fastapi import FastAPI
+import sys
+import os
+import requests
+from fastapi import FastAPI,Form, Request,UploadFile
+
+app = FastAPI()
+
+
+@app.post("/postform1")
+def postform1(username: str = Form(...)):
+    print (username)
+    return username
+
+@app.get("/")
+async def root():
+    return {"message": "test"}
+
+