-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e89d48c
commit 732378d
Showing
2 changed files
with
42 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |