We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdb45da commit 3993589Copy full SHA for 3993589
main.py
@@ -1,6 +1,10 @@
1
-def main():
2
- print("Hello from devops-engineer-from-scratch-project-313!")
+from typing import Union
3
+from fastapi import FastAPI
4
5
-if __name__ == "__main__":
6
- main()
+app = FastAPI()
+
7
8
+@app.get("/ping")
9
+def read_root():
10
+ return "pong"
pyproject.toml
@@ -4,4 +4,11 @@ version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.11"
-dependencies = []
+dependencies = [
+ "fastapi>=0.121.2",
+]
11
+[dependency-groups]
12
+dev = [
13
+ "fastapi[standard]>=0.121.2",
14
0 commit comments