14 lines
361 B
Python
14 lines
361 B
Python
from flask import Flask, render_template
|
|
from markupsafe import escape
|
|
|
|
app = Flask(__name__)
|
|
|
|
api_url = "http://192.168.1.3:8000"
|
|
|
|
@app.route("/")
|
|
def start():
|
|
return render_template('index.jinja', api_url=api_url)
|
|
|
|
@app.route("/pay_cash/<price>")
|
|
def pay_cash(price: int):
|
|
return render_template('paycash.jinja', price=escape(price), api_url=api_url)
|