Skip to content

Commit 3b5af5c

Browse files
committed
✨ Replace app_module_setup with ensure_single_setup for login_auth setup
1 parent d423d6c commit 3b5af5c

File tree

1 file changed

+2
-4
lines changed
  • services/web/server/src/simcore_service_webserver/login_auth

1 file changed

+2
-4
lines changed

services/web/server/src/simcore_service_webserver/login_auth/plugin.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import logging
22

33
from aiohttp import web
4-
from servicelib.aiohttp.application_setup import ModuleCategory, app_module_setup
4+
from servicelib.aiohttp.application_setup import ensure_single_setup
55

66
from ..products.plugin import setup_products
77
from ..rest.plugin import setup_rest
@@ -11,9 +11,7 @@
1111
_logger = logging.getLogger(__name__)
1212

1313

14-
@app_module_setup(
15-
__name__, ModuleCategory.ADDON, settings_name="WEBSERVER_LOGIN_AUTH", logger=_logger
16-
)
14+
@ensure_single_setup(__name__, logger=_logger)
1715
def setup_login_auth(app: web.Application):
1816
setup_products(app)
1917
setup_security(app)

0 commit comments

Comments
 (0)