Is there any simple way to strip request extensions (like .**json**, .**xml**) from URL before route match like

 `/users/1/books.json`

 `/users/1/books.xml`

so that I will not have to write multiple routes,

```
@app.route("/users/<user_id>/books.json"
@app.route("/users/<user_id>/books.xml"
@app.route("/users/<user_id>/books"
def user_books(user_id):

```