Jared 3 년 전
커밋
b0686c7084
1개의 변경된 파일19개의 추가작업 그리고 0개의 파일을 삭제
  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"}
+
+