- Implement gPodder API v2 compatible endpoints at /api/2/: - Auth: login/logout via HTTP Basic Auth or session - Devices: list and register sync devices - Subscriptions: get/add/remove per device, delta sync with ?since= - Episode actions: upload play/position events, syncs to EpisodeProgress - Server URL for AntennaPod: https://diora.creamfresh.xyz/api/2/ - Bump SW cache diora-v4 → v5 to force re-fetch of updated app.js Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
12 lines
562 B
Python
12 lines
562 B
Python
from django.urls import path
|
|
from . import views
|
|
|
|
urlpatterns = [
|
|
path('auth/<str:username>/login.json', views.auth_login),
|
|
path('auth/<str:username>/logout.json', views.auth_logout),
|
|
path('devices/<str:username>.json', views.devices_list),
|
|
path('devices/<str:username>/<str:deviceid>.json', views.device_update),
|
|
path('subscriptions/<str:username>.json', views.subscriptions_all),
|
|
path('subscriptions/<str:username>/<str:deviceid>.json', views.subscriptions_by_device),
|
|
path('episodes/<str:username>.json', views.episode_actions),
|
|
]
|