remove javascript fetch polyfill
This commit is contained in:
parent
c7f2ab8e7a
commit
6f6e3289da
7 changed files with 22 additions and 24 deletions
|
|
@ -5,8 +5,8 @@ from flask import request
|
|||
from js_example import app
|
||||
|
||||
|
||||
@app.route("/", defaults={"js": "plain"})
|
||||
@app.route("/<any(plain, jquery, fetch):js>")
|
||||
@app.route("/", defaults={"js": "fetch"})
|
||||
@app.route("/<any(xhr, jquery, fetch):js>")
|
||||
def index(js):
|
||||
return render_template(f"{js}.html", js=js)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue