Files
tubearchivist/backend/task/urls.py
Craig Alexander aefd678dca Add test notification button (#996)
* Add api to test notifications before you save

* Add button to UI

* Inspect apprise logs to get errors

* Better formatting around errors coming back from the test notification endpoint

* Use apprise's built in log capture

* Instruct the user to get error from container log instead of intercepting and parsing apprise logs

* refac move to test method on notification class

---------

Co-authored-by: Simon <simobilleter@gmail.com>
2025-07-11 17:30:50 +07:00

43 lines
953 B
Python

"""all tasks api URLs"""
from django.urls import path
from task import views
urlpatterns = [
path(
"by-name/",
views.TaskListView.as_view(),
name="api-task-list",
),
path(
"by-name/<slug:task_name>/",
views.TaskNameListView.as_view(),
name="api-task-name-list",
),
path(
"by-id/<slug:task_id>/",
views.TaskIDView.as_view(),
name="api-task-id",
),
path(
"schedule/",
views.ScheduleListView.as_view(),
name="api-schedule-list",
),
path(
"schedule/<slug:task_name>/",
views.ScheduleView.as_view(),
name="api-schedule",
),
path(
"notification/",
views.ScheduleNotification.as_view(),
name="api-schedule-notification",
),
path(
"notification/test/",
views.NotificationTestView.as_view(),
name="api-schedule-notification-test",
),
]