Add a basic class for defining routes for models.