ebebebasdasd
This commit is contained in:
18
main.py
18
main.py
@@ -0,0 +1,18 @@
|
||||
from flask import send_file, Flask
|
||||
#from werkzeug.middleware.proxy_fix import ProxyFix
|
||||
from markupsafe import escape
|
||||
|
||||
app = Flask(__name__)
|
||||
#app.wsgi_app = ProxyFix(app.wsgi_app, x_for=1, x_proto=1, x_host=1, x_prefix=1)
|
||||
|
||||
@app.route("/")
|
||||
def mainpage():
|
||||
return "no i chuj"
|
||||
|
||||
@app.route("/upload")
|
||||
def uploader():
|
||||
return "ebebe"
|
||||
|
||||
@app.route("/download/<string:identifier>")
|
||||
def downloader(identifier):
|
||||
return "identifier: " + escape(identifier)
|
||||
Reference in New Issue
Block a user