"""Route requests to local containers by overriding their definitions.""" from grass.api import access from grass.api import register from grass.connectors.service import OrchardWebService from grass.protocols import rest register( name='ows-royalties', rule='/royalties', metric='royalties', service=OrchardWebService( domain='royalties', url_protocol='http', port=8080, protocol=rest), access=[ access.allow_jwt_token() ] ) register( name='ows-payee', rule='/payee', metric='payee', service=OrchardWebService( domain='payee', url_protocol='http', port=8080, protocol=rest), access=[ access.allow_jwt_token() ] ) register( name='ows-ledger', rule='/ledger', metric='ledger', service=OrchardWebService( domain='ledger', url_protocol='http', port=8080, protocol=rest), access=[ access.allow_jwt_token() ] ) register( name='ows-payment', rule='/payment', metric='payment', service=OrchardWebService( domain='payment', url_protocol='http', port=8080, protocol=rest), access=[ access.allow_jwt_token() ] ) register( name='ows-abacus-contract', rule='/abacus-contract', metric='abacus-contract', service=OrchardWebService( domain='abacus-contract', url_protocol='http', port=8080, protocol=rest), access=[ access.allow_jwt_token() ] ) register( name='ows-abacus-event', rule='/abacus-event', metric='abacus-event', service=OrchardWebService( domain='abacus-event', url_protocol='http', port=8080, protocol=rest), access=[ access.allow_jwt_token() ] ) register( name='ows-abacus-state', rule='/abacus-state', metric='abacus-state', service=OrchardWebService( domain='abacus-state', url_protocol='http', port=8080, protocol=rest), access=[ access.allow_jwt_token() ] ) register( name='graphql-abacus', rule='/graphql-abacus', metric='graphql-abacus', service=OrchardWebService( domain='graphql-abacus', url_protocol='http', port=8080, protocol=rest), access=[ access.allow_jwt_token() ] ) register( name='graphql-gateway', rule='/graphql-gateway', metric='graphql-gateway', service=OrchardWebService( domain='graphql-gateway', url_protocol='http', port=8080, protocol=rest), access=[ access.allow_jwt_token() ] )