Add API channel deletion endpoint

This commit is contained in:
2022-08-14 00:01:00 +01:00
parent b6d229bbd2
commit 81708ef490
4 changed files with 67 additions and 6 deletions

View File

@@ -48,6 +48,7 @@ from core.views.manage.threshold.irc import (
ThresholdIRCOverviewAlerts,
ThresholdIRCSendMessage,
ThresholdIRCStats,
ThresholdIRCNetworkChannelsAPI,
)
# Management stuff
@@ -199,6 +200,11 @@ urlpatterns = [
ThresholdIRCNetworkChannels.as_view(),
name="threshold_irc_network_channels",
),
path(
"manage/threshold/irc/network/<str:net>/channel/json/",
ThresholdIRCNetworkChannelsAPI.as_view(),
name="threshold_irc_network_channel_json",
),
path(
"manage/threshold/irc/network/<str:net>/channel/<channel>/",
ThresholdIRCNetworkChannels.as_view(),