mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
Except for dataflow (where we have a lot of changes, and I don't want to introduce lots of merge conflicts right now).
23 lines
414 B
Python
23 lines
414 B
Python
from flask import Flask, request
|
|
|
|
|
|
app = Flask(__name__)
|
|
|
|
|
|
@app.route("/")
|
|
def home():
|
|
from flask import render_template_string
|
|
if request.args.get('template'):
|
|
return render_template_string(request.args.get('template'))
|
|
|
|
|
|
@app.route("/a")
|
|
def a():
|
|
import flask
|
|
return flask.render_template_string(request.args.get('template'))
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
app.run(debug=True)
|