got routes and methods changed for API