simplified routing scheme for handling just the API.