Correction of the route, change rest to api.