mirror of
https://github.com/balkian/gists.git
synced 2024-11-22 09:42:28 +00:00
This commit is contained in:
commit
c777eeb985
15
server.py
Normal file
15
server.py
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/bin/python
|
||||||
|
from flask import Flask, request, Markup
|
||||||
|
|
||||||
|
app = Flask("prueba")
|
||||||
|
|
||||||
|
@app.route("/")
|
||||||
|
def home():
|
||||||
|
args = ("<pre>")
|
||||||
|
for i in request.args:
|
||||||
|
a = request.args[i]
|
||||||
|
args += u"{} [{}]: {}\n".format(i, Markup.escape(str(type(a))), a)
|
||||||
|
args += "</pre>"
|
||||||
|
return args
|
||||||
|
|
||||||
|
app.run(debug=True)
|
Loading…
Reference in New Issue
Block a user