[scrobbles] Update webhook view permissions and small template changes

This commit is contained in:
2026-03-30 12:54:21 -04:00
parent 1e21bd9481
commit 2ca3dd1ed9
9 changed files with 429 additions and 334 deletions

View File

@ -1,6 +1,6 @@
from django.urls import path
from scrobbles import views
from tasks.webhooks import emacs_webhook, todoist_webhook
from tasks.webhooks import EmacsWebhookView, TodoistWebhookView
app_name = "scrobbles"
@ -49,26 +49,26 @@ urlpatterns = [
),
path(
"webhook/web-scrobbler/",
views.web_scrobbler_webhook,
views.WebScrobblerWebhookView.as_view(),
name="web-scrobbler-webhook",
),
path(
"webhook/gps/",
views.gps_webhook,
views.GPSWebhookView.as_view(),
name="gps-webhook",
),
path(
"webhook/jellyfin/",
views.jellyfin_webhook,
views.JellyfinWebhookView.as_view(),
name="jellyfin-webhook",
),
path(
"webhook/mopidy/",
views.mopidy_webhook,
views.MopidyWebhookView.as_view(),
name="mopidy-webhook",
),
path("webhook/todoist/", todoist_webhook, name="todoist-webhook"),
path("webhook/emacs/", emacs_webhook, name="emacs_webhook"),
path("webhook/todoist/", TodoistWebhookView.as_view(), name="todoist-webhook"),
path("webhook/emacs/", EmacsWebhookView.as_view(), name="emacs_webhook"),
path("export/", views.export, name="export"),
path(
"imports/",