set up routing api