我在使用flask
and方面还很陌生flask-RESTPlus
。我有以下内容,但不清楚如何确定获取请求中使用了哪个路径?
ns = api.namespace('sample', description='get stuff')
@ns.route(
'/resource-settings/<string:address>',
'/unit-settings/<string:address>',
'/resource-proposals/<string:address>',
'/unit-proposals/<string:address>')
@ns.param('address', 'The address to decode')
class Decode(Resource):
@ns.doc(id='Get the decoded result of a block address')
def get(self, address):
# How do I know what get path was called?
pass