|
|
@ -7,7 +7,7 @@ items = {"foo": "The Foo Wrestlers"} |
|
|
|
|
|
|
|
|
@app.get("/items-header/{item_id}") |
|
|
@app.get("/items-header/{item_id}") |
|
|
async def read_item_header(item_id: str): |
|
|
async def read_item_header(item_id: str): |
|
|
|
|
|
|
|
|
if item_id not in items: |
|
|
if item_id not in items: |
|
|
raise HTTPException( |
|
|
raise HTTPException( |
|
|
status_code=404, |
|
|
status_code=404, |
|
|
|