diff options
| author | stilbruch <stilbruch@protonmail.com> | 2022-04-23 14:15:35 -0500 |
|---|---|---|
| committer | stilbruch <stilbruch@protonmail.com> | 2022-04-23 14:15:35 -0500 |
| commit | 404bba9d518271533d5e4c83dabd8541726bf248 (patch) | |
| tree | eaf3abad243810279cd62e50b418aca1203f81a4 /app/routes/basic.py | |
| parent | 5d08424481a8a6ae1b69c96a6ee43394d9aa8963 (diff) | |
| download | Strengthy-404bba9d518271533d5e4c83dabd8541726bf248.tar.xz Strengthy-404bba9d518271533d5e4c83dabd8541726bf248.zip | |
Move routes into seperate folder
Diffstat (limited to 'app/routes/basic.py')
| -rw-r--r-- | app/routes/basic.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/routes/basic.py b/app/routes/basic.py new file mode 100644 index 0000000..36f42f5 --- /dev/null +++ b/app/routes/basic.py @@ -0,0 +1,11 @@ +from app import app, db +from flask_login import login_required + +@app.route("/", methods=["GET"]) +def index(): + return render_template('index.html') + +@app.route("/home", methods=["GET"]) +@login_required +def home(): + return render_template('home.html') |
