Change match in routes to either a get or put