fix POST, PUT, PATCH Methods, but executing this only on the last element of a route