-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added few options to show FastAPI functions
- Loading branch information
rodrigo.arenas
committed
Feb 11, 2021
1 parent
89b6c1b
commit 84ce11e
Showing
3 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
from fastapi import APIRouter | ||
|
||
app_home = APIRouter() | ||
|
||
|
||
@app_home.get('/', tags=["Intro"]) | ||
async def hello(): | ||
return {"message": "Hello!"} | ||
|
||
|
||
@app_home.get('/bye', tags=["Intro"]) | ||
async def bye(): | ||
return {"message": "Bye!"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters