Skip to content

Commit

Permalink
Merge pull request #1 from RollerKnobster/RollerKnobster-patch-1
Browse files Browse the repository at this point in the history
feat: add new router to the main router
  • Loading branch information
RollerKnobster authored Jun 25, 2021
2 parents 5fc5d0a + 109723c commit b513c87
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/routers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ def home():
def name():
"""Optional name endpoint."""
return PlainTextResponse(f'Hello {name}!')


@router.get("/name/{specific_name}", include_in_schema=False)
def specific_name():
"""Have a more specific way to provide a name to be greeted for."""
return PlainTextResponse(f'Hello, specific {specific_name}!')

0 comments on commit b513c87

Please sign in to comment.