Middlewares for RESTful URLs implemented.