Initial App Commit with Login and Auth
This commit is contained in:
12
app/controllers/__init__.py
Normal file
12
app/controllers/__init__.py
Normal file
@ -0,0 +1,12 @@
|
||||
from flask import Blueprint
|
||||
import os
|
||||
import importlib
|
||||
|
||||
main = Blueprint('main', __name__)
|
||||
|
||||
|
||||
controllers_dir = os.path.dirname(__file__)
|
||||
for filename in os.listdir(controllers_dir):
|
||||
if filename.endswith('.py') and filename != '__init__.py':
|
||||
module_name = f'app.controllers.{filename[:-3]}'
|
||||
importlib.import_module(module_name)
|
Reference in New Issue
Block a user