Converted the user api routes to use attribute routing