This commit is contained in:
Derek Schuster 2016-11-28 14:05:47 -05:00
parent 190b7a6076
commit 209b763302

View File

@ -31,7 +31,7 @@ class Router:
def my_route(request, my_parameter):
do stuff...
or
@sanic.route('/my/url/<my_paramter>:int', methods['GET', 'POST', ...])
@sanic.route('/my/url/<my_paramter>:type', methods['GET', 'POST', ...])
def my_route_with_type(request, my_parameter):
do stuff...