Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d9e31b5

Browse files
committed
Change signup.html to /signup
1 parent 4ec32a9 commit d9e31b5

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

core/data/catseverywhere.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
def hello_world():
1212
return render_template('index.html')
1313

14-
@app.route('/signup.html', methods = ['POST'])
14+
@app.route('/signup', methods = ['POST'])
1515
def signup():
1616
email = request.form['email']
1717
email_addresses.append(email)

core/data/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<div id="banner">
5151
<h1>cats everywhere</h1>
5252
<p class="lead">We're bringing cats to the internet. Free. Cute. Awesome.</p>
53-
<form action="signup.html" method="post">
53+
<form action="/signup" method="post">
5454
<input type="text" name="email"></input>
5555
<input type="submit" value="Signup"></input>
5656
</form>

core/form-submission/catseverywhere.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
def hello_world():
99
return render_template('index.html')
1010

11-
@app.route('/signup.html', methods = ['POST'])
11+
@app.route('/signup', methods = ['POST'])
1212
def signup():
1313
email = request.form['email']
1414
print("The email address is '" + email + "'")

core/form-submission/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
<div id="banner">
5151
<h1>cats everywhere</h1>
5252
<p class="lead">We're bringing cats to the internet. Free. Cute. Awesome.</p>
53-
<form action="signup.html" method="post">
53+
<form action="/signup" method="post">
5454
<input type="text" name="email"></input>
5555
<input type="submit" value="Signup"></input>
5656
</form>

0 commit comments

Comments
 (0)