Browse Source

Initial commit with FastAPI setup

jezvgg 2 tháng trước cách đây
commit
c423617a67
1 tập tin đã thay đổi với 7 bổ sung0 xóa
  1. 7 0
      main.py

+ 7 - 0
main.py

@@ -0,0 +1,7 @@
+from fastapi import FastAPI
+
+app = FastAPI()
+
+@app.get("/")
+def read_root():
+    return {"message": "Hello, World!"}