[FIX] hw_proxy: routes shadowed by same method name
This commit is contained in:
parent
5804246e0f
commit
5275c10e70
|
@ -192,12 +192,12 @@ class Proxy(http.Controller):
|
||||||
print 'print_receipt' + str(receipt)
|
print 'print_receipt' + str(receipt)
|
||||||
|
|
||||||
@http.route('/hw_proxy/is_scanner_connected', type='json', auth='none', cors='*')
|
@http.route('/hw_proxy/is_scanner_connected', type='json', auth='none', cors='*')
|
||||||
def print_receipt(self, receipt):
|
def is_scanner_connected(self, receipt):
|
||||||
print 'is_scanner_connected?'
|
print 'is_scanner_connected?'
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@http.route('/hw_proxy/scanner', type='json', auth='none', cors='*')
|
@http.route('/hw_proxy/scanner', type='json', auth='none', cors='*')
|
||||||
def print_receipt(self, receipt):
|
def scanner(self, receipt):
|
||||||
print 'scanner'
|
print 'scanner'
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
return ''
|
return ''
|
||||||
|
|
Loading…
Reference in New Issue