from pos.rest import product_list from pos.rest import token_create, token_destroy def setup_routes(app): app.router.add_route('POST', '/api/token', token_create) app.router.add_route('DELETE', '/api/token', token_destroy) app.router.add_route('GET', '/api/products', product_list)