Skip to content

Commit

Permalink
- add nav as param to /send
Browse files Browse the repository at this point in the history
  • Loading branch information
lennardevertz committed Aug 22, 2024
1 parent e89d48c commit 732378d
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 35 deletions.
42 changes: 23 additions & 19 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
from flask import Flask, render_template

app = Flask(__name__)

@app.route('/')
def hello_world():
return 'Hello, World!'

@app.route('/send', methods=["GET"])
def submodule_index():
return render_template('send-to-anyone-page.html')


@app.route("/send/<nav>", methods=["GET"])
def streamer_obs():
return render_template('send-to-anyone-page.html')

if __name__ == '__main__':
app.run(debug=True)
from flask import Flask, render_template

app = Flask(__name__)


@app.route("/")
def hello_world():
return "Hello, World!"


@app.route("/send", methods=["GET"])
def submodule_index():
print("getting page")
return render_template("send-to-anyone.html")


@app.route("/send/<nav>", methods=["GET"])
def streamer_obs(nav):
return render_template("send-to-anyone.html")


if __name__ == "__main__":
app.run(debug=True)
35 changes: 19 additions & 16 deletions send_blueprint.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
from flask import Blueprint, render_template

send_blueprint = Blueprint('send', __name__,
template_folder='templates',
static_folder='static',
static_url_path='/frontend/send/static')


@send_blueprint.route('/send', methods=["GET"])
def send_index():
return render_template('send-to-anyone.html')


@send_blueprint.route('/send/<nav>', methods=["GET"])
def send_nav():
return render_template('send-to-anyone.html')
from flask import Blueprint, render_template

send_blueprint = Blueprint(
"send",
__name__,
template_folder="templates",
static_folder="static",
static_url_path="/frontend/send/static",
)


@send_blueprint.route("/send", methods=["GET"])
def send_index():
return render_template("send-to-anyone.html")


@send_blueprint.route("/send/<nav>", methods=["GET"])
def send_nav(nav):
return render_template("send-to-anyone.html")

0 comments on commit 732378d

Please sign in to comment.