sploit for arena-battle
This commit is contained in:
Executable
+28
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/python3
|
||||
from flask import Flask, send_file
|
||||
app = Flask(__name__)
|
||||
static_node_port = 5001
|
||||
|
||||
|
||||
@app.route('/img/<name>')
|
||||
def img(name):
|
||||
return send_file(f'files/static/img/{name}')
|
||||
|
||||
|
||||
@app.route('/css/<name>')
|
||||
def css(name):
|
||||
return send_file(f'files/static/css/{name}')
|
||||
|
||||
|
||||
@app.route('/fonts/<name>')
|
||||
def fonts(name):
|
||||
return send_file(f'files/static/fonts/{name}')
|
||||
|
||||
|
||||
@app.route('/js/<name>')
|
||||
def js(name):
|
||||
return send_file(f'files/static/js/{name}')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(host="0.0.0.0", port=static_node_port)
|
||||
Reference in New Issue
Block a user