-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
76 lines (46 loc) · 1.49 KB
/
Copy pathapp.py
File metadata and controls
76 lines (46 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
from flask import Flask, render_template, request
app = Flask(__name__)
@app.route("/")
def home():
return render_template("home.html")
@app.route("/workout")
def workout():
return render_template("workout.html")
@app.route("/profile")
def profile():
return render_template("profile.html")
@app.route("/remix")
def remix():
return render_template("remix.html")
@app.route("/signup", methods=["POST"])
def signup():
name = request.form["name"]
email = request.form["email"]
# save name and email to database
return render_template("signup.html", name=name, email=email)
@app.route("/workout/<int:workout_id>", methods=["GET"])
def workout(workout_id):
pass
@app.route("/workout", methods=["POST"])
def create_workout():
pass
@app.route("/workout/<int:workout_id>/exercise", methods=["POST"])
def create_exercise(workout_id):
pass
@app.route("/workout/<int:workout_id>/edit")
def edit_workout(workout_id):
pass
@app.route("/workout/<int:workout_id>/update", methods=["POST"])
def update_workout(workout_id):
pass
@app.route("/exercise/<int:exercise_id>/edit")
def edit_exercise(exercise_id):
pass
@app.route("/exercise/<int:exercise_id>/update", methods=["POST"])
def update_exercise(exercise_id):
pass
@app.route("/exercise/<int:exercise_id>/delete", methods=["POST"])
def delete_exercise(exercise_id):
pass
if __name__ == "__main__":
app.run(debug=True)