from flask import Flask, request, render_template, send_file


app = Flask(__name__)


@app.route('/')
def index():
    return render_template('index.html')
@app.route('/px.js')
def js():
    return send_file('templates/px.js', )
@app.route('/collect', methods=["POST"])
def collect():
    print(request.data.decode())
    return 'ok'

if __name__ == '__main__':
    app.run(host='0.0.0.0',debug=True, port=11233)