change the redirect routes
added the method put