[tasks] First try at adding an emacs webhook

This commit is contained in:
2025-06-08 01:09:03 -04:00
parent 059d7780a0
commit c871087496
4 changed files with 160 additions and 12 deletions

View File

@ -1,6 +1,6 @@
from django.urls import path
from scrobbles import views
from tasks.webhooks import todoist_webhook
from tasks.webhooks import todoist_webhook, emacs_webhook
app_name = "scrobbles"
@ -63,6 +63,13 @@ urlpatterns = [
views.ScrobbleImportListView.as_view(),
name="import-detail",
),
path("webhook/emacs/", emacs_webhook, name="emacs_webhook"),
path("export/", views.export, name="export"),
path(
"imports/",
views.ScrobbleImportListView.as_view(),
name="import-detail",
),
path(
"imports/tsv/<slug:slug>/",
views.ScrobbleTSVImportDetailView.as_view(),