oncall-engine/engine/apps/slack/urls.py
Joey Orlando f77a54b518
Shift Swap Requests in Slack + improve typing for Slack django app (#2653)
# What this PR does

**Shift Swap Requests**

https://www.loom.com/share/860c3337b338412cbd2ac4024260f3e8?sid=3d91b558-b4de-4351-8b45-8a99b7302346

**Other**
- Drastically improve the typing in the `slack` Django app, and several
other models/functions that were consumed by logic within the `slack`
Django app (ex. setting `RelatedManager` type hints on various models)
https://www.loom.com/share/da6b9984519c48d59a45d3c93c08d7dc

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
2023-07-28 15:11:38 +00:00

22 lines
964 B
Python

from django.urls import path
from .views import (
InstallLinkRedirectView,
OAuthSlackView,
ResetSlackView,
SignupRedirectView,
SlackEventApiEndpointView,
)
urlpatterns = [
path("event_api_endpoint/", SlackEventApiEndpointView.as_view()),
path("interactive_api_endpoint/", SlackEventApiEndpointView.as_view()),
path("oauth/", OAuthSlackView.as_view()),
path("oauth/<str:subscription>/<str:utm>/", OAuthSlackView.as_view()),
path("install_redirect/", InstallLinkRedirectView.as_view()),
path("install_redirect/<str:subscription>/<str:utm>/", InstallLinkRedirectView.as_view()),
path("signup_redirect/", SignupRedirectView.as_view()),
path("signup_redirect/<str:subscription>/<str:utm>/", SignupRedirectView.as_view()),
# Trailing / is missing here on purpose. QA the feature if you want to add it. No idea why doesn't it work with it.
path("reset_slack", ResetSlackView.as_view(), name="reset-slack"),
]