From 6077d264908abade0dba1770daf128a496ea0ccb Mon Sep 17 00:00:00 2001 From: Neal Magee Date: Thu, 14 Mar 2024 13:18:39 +0000 Subject: [PATCH] Cleanup within gitpod --- app/main.py | 5 ----- preview.sh | 4 ++++ 2 files changed, 4 insertions(+), 5 deletions(-) create mode 100755 preview.sh diff --git a/app/main.py b/app/main.py index 0b5c2ce..d9ab946 100755 --- a/app/main.py +++ b/app/main.py @@ -14,7 +14,6 @@ class Item(BaseModel): price: float tax: Optional[float] = None - @app.get("/") # zone apex def read_root(): return {"Hello": "World"} @@ -26,10 +25,6 @@ def add_me(number_1: int, number_2: int): sum = number_1 + number_2 return {"sum": sum} -@app.get("/foo") -def foo(): - return {"foo":"foo"} - # Introduce data types and defaults from the Optional library @app.get("/items/{item_id}") diff --git a/preview.sh b/preview.sh new file mode 100755 index 0000000..f1a792d --- /dev/null +++ b/preview.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +cd app +uvicorn main:app --reload \ No newline at end of file