1
0
Fork 0
mirror of https://github.com/shouptech/humulus.git synced 2026-02-03 13:49:41 +00:00

Redirect home to recipes index

This commit is contained in:
Emma 2019-06-28 11:24:25 -06:00
parent 1b248f9ac4
commit 17282af304
2 changed files with 3 additions and 3 deletions

View file

@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from flask import Blueprint, render_template
from flask import Blueprint, redirect, url_for
bp = Blueprint('home', __name__)
@ -22,4 +22,4 @@ bp = Blueprint('home', __name__)
@bp.route('/')
def index():
"""Renders the homepage template"""
return render_template('index.html')
return redirect(url_for('recipes.index'))

View file

@ -15,4 +15,4 @@
def test_home(client):
response = client.get('/')
assert b'Home' in response.data
assert response.status_code == 302