change routing for rest api