Skip to content

Commit

Permalink
Cleanup within gitpod
Browse files Browse the repository at this point in the history
  • Loading branch information
nmagee committed Mar 14, 2024
1 parent c87f5c6 commit 6077d26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 0 additions & 5 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class Item(BaseModel):
price: float
tax: Optional[float] = None


@app.get("/") # zone apex
def read_root():
return {"Hello": "World"}
Expand All @@ -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}")
Expand Down
4 changes: 4 additions & 0 deletions preview.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

cd app
uvicorn main:app --reload

0 comments on commit 6077d26

Please sign in to comment.