File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -97,17 +97,17 @@ def create_app(config_override=None, instance_path=None):
9797 app .logger .error (f'Failed to create instance path at { app .instance_path } ' )
9898 sys .exit (1 )
9999
100- # TODO: When using Flask-SQLAlchemy, the following import is not required because we're importing db.Model in the
101- # SQLAlchemy classes
102- # from .dao.resource import ResourceDAO
100+ # When using Flask-SQLAlchemy, there is no need to explicitly import DAO classes because they themselves
101+ # inherit from the SQLAlchemy model
102+
103103 global db , ma , migrate
104104 db .init_app (app )
105105 migrate .init_app (app , db )
106106 ma .init_app (app )
107107 oidc .init_app (app )
108108
109109 #
110- # Import our APIs here
110+ # Import and register our APIs here
111111
112112 from mrmat_python_api_flask .apis .healthz import bp as api_healthz
113113 from mrmat_python_api_flask .apis .greeting .v1 import api_greeting_v1
You can’t perform that action at this time.
0 commit comments