Merge pull request #793 from gpodder/remove-advertise
[mygpo.git] / mygpo / publisher / urls.py
blob96deea12ddc91624655f79f3521d0453b1253259
1 from django.urls import path, register_converter
3 from . import views
5 from mygpo.users import converters
8 register_converter(converters.UsernameConverter, "username")
11 urlpatterns = [
12 path("", views.home, name="publisher"),
13 path(
14 "<username:username>/update",
15 views.update_published_podcasts,
16 name="publisher-update",
18 path(
19 "<username:username>/update-token",
20 views.new_update_token,
21 name="publisher-new-update-token",
23 path(
24 "podcast/<uuid:podcast_id>/",
25 views.podcast_id,
26 name="podcast-publisher-detail-id",
28 path(
29 "podcast/<uuid:podcast_id>/update",
30 views.update_podcast_id,
31 name="podcast-publisher-update-id",
33 path(
34 "podcast/<uuid:podcast_id>/save",
35 views.save_podcast_id,
36 name="podcast-publisher-save-id",
38 path(
39 "podcast/<uuid:podcast_id>/episodes",
40 views.episodes_id,
41 name="podcast-publisher-episodes-id",
43 path(
44 "podcast/<uuid:podcast_id>/<uuid:e_id>",
45 views.episode_id,
46 name="episode-publisher-detail-id",
48 path(
49 "podcast/<uuid:podcast_id>/<uuid:episode_id>/" "set-slug",
50 views.update_episode_slug_id,
51 name="publisher-set-episode-slug-id",
53 path(
54 "podcast/<slug:slug>/", views.podcast_slug, name="podcast-publisher-detail-slug"
56 path(
57 "podcast/<slug:slug>/update",
58 views.update_podcast_slug,
59 name="podcast-publisher-update-slug",
61 path(
62 "podcast/<slug:slug>/save",
63 views.save_podcast_slug,
64 name="podcast-publisher-save-slug",
66 path(
67 "podcast/<slug:slug>/episodes",
68 views.episodes_slug,
69 name="podcast-publisher-episodes-slug",
71 path(
72 "podcast/<slug:p_slug>/<slug:e_slug>",
73 views.episode_slug,
74 name="episode-publisher-detail-slug",
76 path(
77 "podcast/<slug:p_slug>/<slug:e_slug>/set-slug",
78 views.update_episode_slug_slug,
79 name="publisher-set-episode-slug-slug",
81 path("group/<slug:pg_slug>", views.group_slug, name="group-publisher-slug"),
82 path("group/<slug:pg_slug>", views.group_id, name="group-publisher-id"),
83 path("podcast/search", views.search_podcast, name="podcast-publisher-search"),
84 path("link/", views.link, name="link-here"),
85 path("advertise", views.advertise, name="advertise"),