Skip to content

Commit

Permalink
feature: 通知中心接入 (closed #2059)
Browse files Browse the repository at this point in the history
  • Loading branch information
wyyalt committed Jan 15, 2024
1 parent 4eb9bc1 commit 36f545f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@
"blueapps.opentelemetry.instrument_app",
# apigw
"apigw_manager.apigw",
# bk-notice
"bk_notice_sdk",
)

# 这里是默认的中间件,大部分情况下,不需要改动
Expand Down
5 changes: 4 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,7 @@ bk-monitor-report==1.2.1


apigw-manager[cryptography]==1.1.5
cryptography==3.3.2
cryptography==3.3.2

# notice
bk-notice-sdk==1.2.0
2 changes: 2 additions & 0 deletions urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from drf_yasg.views import get_schema_view
from rest_framework import permissions
from version_log import config
from bk_notice_sdk import config

schema_view = get_schema_view(
openapi.Info(
Expand All @@ -38,6 +39,7 @@
url(r"^core/", include("apps.core.urls")),
url(r"^", include("apps.node_man.urls")),
url(r"^{}".format(config.ENTRANCE_URL), include("version_log.urls", namespace="version_log")),
url(r'^{}'.format(config.ENTRANCE_URL), include(('bk_notice_sdk.urls', 'notice'), namespace='notice')),
]

if settings.ENVIRONMENT not in ["production", "prod"]:
Expand Down

0 comments on commit 36f545f

Please sign in to comment.