-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
/
Copy pathurls.py
33 lines (30 loc) · 1.01 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from django.urls import re_path
from sentry.integrations.web.discord_extension_configuration import (
DiscordExtensionConfigurationView,
)
from .views.link_identity import DiscordLinkIdentityView
from .views.unlink_identity import DiscordUnlinkIdentityView
from .webhooks.base import DiscordInteractionsEndpoint
urlpatterns = [
re_path(
r"^interactions/$",
DiscordInteractionsEndpoint.as_view(),
name="sentry-integration-discord-interactions",
),
re_path(
r"link-identity/(?P<signed_params>[^\/]+)/$",
DiscordLinkIdentityView.as_view(),
name="sentry-integration-discord-link-identity",
),
re_path(
r"unlink-identity/(?P<signed_params>[^\/]+)/$",
DiscordUnlinkIdentityView.as_view(),
name="sentry-integration-discord-unlink-identity",
),
# Discord App Directory extension install flow
re_path(
r"^configure/$",
DiscordExtensionConfigurationView.as_view(),
name="discord-extension-configuration",
),
]