Skip to content

Commit

Permalink
Testing * wild card
Browse files Browse the repository at this point in the history
  • Loading branch information
ShayanDeSh committed Oct 31, 2020
1 parent d6c25f8 commit 8a9917f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions demo/route.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@ def get(request, response, id):
return params


@control.route(method=["GET", "POST"], route="/user_all/*id")
class DashboardEndpoint(Endpoint):
@json
def get(request, response, id):
print(id)
params = {"my_string": id, "my_list": [0, 1, 2]}
return params


@control.route(method=["GET", "POST"], route="/user/profile")
class DashboardEndpoint(Endpoint):
@html
Expand Down

0 comments on commit 8a9917f

Please sign in to comment.