Generated routes and middleware for model instance methods.