mirror of
https://github.com/tubearchivist/tubearchivist.git
synced 2026-06-28 15:05:47 +00:00
* 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>
43 lines
953 B
Python
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",
|
|
),
|
|
]
|