Browse Source

Split routes to folders

pull/12/head
Darks 5 months ago
parent
commit
d6e8f7d4d8
Signed by: Darks <l.gatin@neuf.fr> GPG Key ID: F61F10FA138E797C
4 changed files with 3 additions and 3 deletions
  1. 3
    1
      app/__init__.py
  2. 0
    0
      app/routes/account/account.py
  3. 0
    2
      app/routes/account/login.py
  4. 0
    0
      app/routes/admin/account.py

+ 3
- 1
app/__init__.py View File

@@ -14,5 +14,7 @@ login.login_view = 'login'
login.login_message = "Veuillez vous authentifier avant de continuer."

from app import models # IDK why this is here, but it works
from app.routes import index, login, search, account, admin, users # To load routes at initialization
from app.routes import index, search, users # To load routes at initialization
from app.routes.account import login, account
from app.routes.admin import index, groups, account
from app.utils import pluralize # To use pluralize into the templates

app/routes/account.py → app/routes/account/account.py View File


app/routes/login.py → app/routes/account/login.py View File

@@ -5,8 +5,6 @@ from app.forms.login import LoginForm
from app.models.users import Member
from app.utils.render import render

# from app.routes.index import index


@app.route('/login', methods=['GET', 'POST'])
def login():

app/routes/admin/edit-account.py → app/routes/admin/account.py View File


Loading…
Cancel
Save