|
4ce269c…
|
ragelink
|
1 |
from django.urls import path |
|
4ce269c…
|
ragelink
|
2 |
|
|
c588255…
|
ragelink
|
3 |
from . import api_views, views |
|
4ce269c…
|
ragelink
|
4 |
|
|
4ce269c…
|
ragelink
|
5 |
app_name = "fossil" |
|
4ce269c…
|
ragelink
|
6 |
|
|
4ce269c…
|
ragelink
|
7 |
urlpatterns = [ |
|
c588255…
|
ragelink
|
8 |
# JSON API |
|
c588255…
|
ragelink
|
9 |
path("api/", api_views.api_docs, name="api_docs"), |
|
c588255…
|
ragelink
|
10 |
path("api/project", api_views.api_project, name="api_project"), |
|
c588255…
|
ragelink
|
11 |
path("api/timeline", api_views.api_timeline, name="api_timeline"), |
|
c588255…
|
ragelink
|
12 |
path("api/tickets", api_views.api_tickets, name="api_tickets"), |
|
c588255…
|
ragelink
|
13 |
# Unclaimed must be before <str:ticket_uuid> to avoid matching "unclaimed" as a UUID |
|
c588255…
|
ragelink
|
14 |
path("api/tickets/unclaimed", api_views.api_tickets_unclaimed, name="api_tickets_unclaimed"), |
|
c588255…
|
ragelink
|
15 |
path("api/tickets/<str:ticket_uuid>", api_views.api_ticket_detail, name="api_ticket_detail"), |
|
c588255…
|
ragelink
|
16 |
path("api/wiki", api_views.api_wiki_list, name="api_wiki_list"), |
|
c588255…
|
ragelink
|
17 |
path("api/wiki/<path:page_name>", api_views.api_wiki_page, name="api_wiki_page"), |
|
c588255…
|
ragelink
|
18 |
path("api/branches", api_views.api_branches, name="api_branches"), |
|
c588255…
|
ragelink
|
19 |
path("api/tags", api_views.api_tags, name="api_tags"), |
|
c588255…
|
ragelink
|
20 |
path("api/releases", api_views.api_releases, name="api_releases"), |
|
c588255…
|
ragelink
|
21 |
path("api/search", api_views.api_search, name="api_search"), |
|
c588255…
|
ragelink
|
22 |
# Batch API |
|
c588255…
|
ragelink
|
23 |
path("api/batch", api_views.api_batch, name="api_batch"), |
|
c588255…
|
ragelink
|
24 |
# Agent Workspaces |
|
c588255…
|
ragelink
|
25 |
path("api/workspaces", api_views.api_workspace_list, name="api_workspace_list"), |
|
c588255…
|
ragelink
|
26 |
path("api/workspaces/create", api_views.api_workspace_create, name="api_workspace_create"), |
|
c588255…
|
ragelink
|
27 |
path("api/workspaces/<str:workspace_name>", api_views.api_workspace_detail, name="api_workspace_detail"), |
|
c588255…
|
ragelink
|
28 |
path("api/workspaces/<str:workspace_name>/commit", api_views.api_workspace_commit, name="api_workspace_commit"), |
|
c588255…
|
ragelink
|
29 |
path("api/workspaces/<str:workspace_name>/merge", api_views.api_workspace_merge, name="api_workspace_merge"), |
|
c588255…
|
ragelink
|
30 |
path("api/workspaces/<str:workspace_name>/abandon", api_views.api_workspace_abandon, name="api_workspace_abandon"), |
|
c588255…
|
ragelink
|
31 |
# Task Claiming |
|
c588255…
|
ragelink
|
32 |
path("api/tickets/<str:ticket_uuid>/claim", api_views.api_ticket_claim, name="api_ticket_claim"), |
|
c588255…
|
ragelink
|
33 |
path("api/tickets/<str:ticket_uuid>/release", api_views.api_ticket_release, name="api_ticket_release"), |
|
c588255…
|
ragelink
|
34 |
path("api/tickets/<str:ticket_uuid>/submit", api_views.api_ticket_submit, name="api_ticket_submit"), |
|
c588255…
|
ragelink
|
35 |
# Server-Sent Events |
|
c588255…
|
ragelink
|
36 |
path("api/events", api_views.api_events, name="api_events"), |
|
c588255…
|
ragelink
|
37 |
# Code Reviews |
|
c588255…
|
ragelink
|
38 |
path("api/reviews", api_views.api_review_list, name="api_review_list"), |
|
c588255…
|
ragelink
|
39 |
path("api/reviews/create", api_views.api_review_create, name="api_review_create"), |
|
c588255…
|
ragelink
|
40 |
path("api/reviews/<int:review_id>", api_views.api_review_detail, name="api_review_detail"), |
|
c588255…
|
ragelink
|
41 |
path("api/reviews/<int:review_id>/comment", api_views.api_review_comment, name="api_review_comment"), |
|
c588255…
|
ragelink
|
42 |
path("api/reviews/<int:review_id>/approve", api_views.api_review_approve, name="api_review_approve"), |
|
c588255…
|
ragelink
|
43 |
path("api/reviews/<int:review_id>/request-changes", api_views.api_review_request_changes, name="api_review_request_changes"), |
|
c588255…
|
ragelink
|
44 |
path("api/reviews/<int:review_id>/merge", api_views.api_review_merge, name="api_review_merge"), |
|
c588255…
|
ragelink
|
45 |
# |
|
4ce269c…
|
ragelink
|
46 |
path("code/", views.code_browser, name="code"), |
|
4ce269c…
|
ragelink
|
47 |
path("code/tree/<path:dirpath>/", views.code_browser, name="code_dir"), |
|
4ce269c…
|
ragelink
|
48 |
path("code/file/<path:filepath>", views.code_file, name="code_file"), |
|
4ce269c…
|
ragelink
|
49 |
path("timeline/", views.timeline, name="timeline"), |
|
4ce269c…
|
ragelink
|
50 |
path("checkin/<str:checkin_uuid>/", views.checkin_detail, name="checkin_detail"), |
|
4ce269c…
|
ragelink
|
51 |
path("tickets/", views.ticket_list, name="tickets"), |
|
c588255…
|
ragelink
|
52 |
path("tickets/create/", views.ticket_create, name="ticket_create"), |
|
c588255…
|
ragelink
|
53 |
path("tickets/export/", views.tickets_csv, name="tickets_csv"), |
|
c588255…
|
ragelink
|
54 |
# Custom Ticket Fields (must be before tickets/<str:ticket_uuid>/ to avoid str match) |
|
c588255…
|
ragelink
|
55 |
path("tickets/fields/", views.ticket_fields_list, name="ticket_fields"), |
|
c588255…
|
ragelink
|
56 |
path("tickets/fields/create/", views.ticket_fields_create, name="ticket_field_create"), |
|
c588255…
|
ragelink
|
57 |
path("tickets/fields/<int:pk>/edit/", views.ticket_fields_edit, name="ticket_field_edit"), |
|
c588255…
|
ragelink
|
58 |
path("tickets/fields/<int:pk>/delete/", views.ticket_fields_delete, name="ticket_field_delete"), |
|
c588255…
|
ragelink
|
59 |
# Custom Ticket Reports (must be before tickets/<str:ticket_uuid>/ to avoid str match) |
|
c588255…
|
ragelink
|
60 |
path("tickets/reports/", views.ticket_reports_list, name="ticket_reports"), |
|
c588255…
|
ragelink
|
61 |
path("tickets/reports/create/", views.ticket_report_create, name="ticket_report_create"), |
|
c588255…
|
ragelink
|
62 |
path("tickets/reports/<int:pk>/", views.ticket_report_run, name="ticket_report_run"), |
|
c588255…
|
ragelink
|
63 |
path("tickets/reports/<int:pk>/edit/", views.ticket_report_edit, name="ticket_report_edit"), |
|
4ce269c…
|
ragelink
|
64 |
path("tickets/<str:ticket_uuid>/", views.ticket_detail, name="ticket_detail"), |
|
2eca4eb…
|
ragelink
|
65 |
path("tickets/<str:ticket_uuid>/edit/", views.ticket_edit, name="ticket_edit"), |
|
2eca4eb…
|
ragelink
|
66 |
path("tickets/<str:ticket_uuid>/comment/", views.ticket_comment, name="ticket_comment"), |
|
4ce269c…
|
ragelink
|
67 |
path("wiki/", views.wiki_list, name="wiki"), |
|
4ce269c…
|
ragelink
|
68 |
path("wiki/create/", views.wiki_create, name="wiki_create"), |
|
4ce269c…
|
ragelink
|
69 |
path("wiki/page/<path:page_name>", views.wiki_page, name="wiki_page"), |
|
4ce269c…
|
ragelink
|
70 |
path("wiki/edit/<path:page_name>", views.wiki_edit, name="wiki_edit"), |
|
4ce269c…
|
ragelink
|
71 |
path("forum/", views.forum_list, name="forum"), |
|
c588255…
|
ragelink
|
72 |
path("forum/create/", views.forum_create, name="forum_create"), |
|
4ce269c…
|
ragelink
|
73 |
path("forum/<str:thread_uuid>/", views.forum_thread, name="forum_thread"), |
|
c588255…
|
ragelink
|
74 |
path("forum/<int:post_id>/reply/", views.forum_reply, name="forum_reply"), |
|
c588255…
|
ragelink
|
75 |
# Webhooks |
|
c588255…
|
ragelink
|
76 |
path("webhooks/", views.webhook_list, name="webhooks"), |
|
c588255…
|
ragelink
|
77 |
path("webhooks/create/", views.webhook_create, name="webhook_create"), |
|
c588255…
|
ragelink
|
78 |
path("webhooks/<int:webhook_id>/edit/", views.webhook_edit, name="webhook_edit"), |
|
c588255…
|
ragelink
|
79 |
path("webhooks/<int:webhook_id>/delete/", views.webhook_delete, name="webhook_delete"), |
|
c588255…
|
ragelink
|
80 |
path("webhooks/<int:webhook_id>/deliveries/", views.webhook_deliveries, name="webhook_deliveries"), |
|
4ce269c…
|
ragelink
|
81 |
path("user/<str:username>/", views.user_activity, name="user_activity"), |
|
4ce269c…
|
ragelink
|
82 |
path("branches/", views.branch_list, name="branches"), |
|
4ce269c…
|
ragelink
|
83 |
path("tags/", views.tag_list, name="tags"), |
|
4ce269c…
|
ragelink
|
84 |
path("technotes/", views.technote_list, name="technotes"), |
|
c588255…
|
ragelink
|
85 |
path("technotes/create/", views.technote_create, name="technote_create"), |
|
c588255…
|
ragelink
|
86 |
path("technotes/<str:technote_id>/", views.technote_detail, name="technote_detail"), |
|
c588255…
|
ragelink
|
87 |
path("technotes/<str:technote_id>/edit/", views.technote_edit, name="technote_edit"), |
|
c588255…
|
ragelink
|
88 |
# Unversioned content |
|
c588255…
|
ragelink
|
89 |
path("files/", views.unversioned_list, name="unversioned"), |
|
c588255…
|
ragelink
|
90 |
path("files/upload/", views.unversioned_upload, name="unversioned_upload"), |
|
c588255…
|
ragelink
|
91 |
path("files/download/<path:filename>", views.unversioned_download, name="unversioned_download"), |
|
4ce269c…
|
ragelink
|
92 |
path("search/", views.search, name="search"), |
|
4ce269c…
|
ragelink
|
93 |
path("stats/", views.repo_stats, name="stats"), |
|
4ce269c…
|
ragelink
|
94 |
path("compare/", views.compare_checkins, name="compare"), |
|
c588255…
|
ragelink
|
95 |
path("settings/", views.repo_settings, name="repo_settings"), |
|
4ce269c…
|
ragelink
|
96 |
path("sync/", views.sync_pull, name="sync"), |
|
2eca4eb…
|
ragelink
|
97 |
path("sync/git/", views.git_mirror_config, name="git_mirror"), |
|
c588255…
|
ragelink
|
98 |
path("sync/git/<int:mirror_id>/edit/", views.git_mirror_config, name="git_mirror_edit"), |
|
c588255…
|
ragelink
|
99 |
path("sync/git/<int:mirror_id>/delete/", views.git_mirror_delete, name="git_mirror_delete"), |
|
2eca4eb…
|
ragelink
|
100 |
path("sync/git/<int:mirror_id>/run/", views.git_mirror_run, name="git_mirror_run"), |
|
70fa957…
|
ragelink
|
101 |
path("sync/git/connect/github/", views.oauth_github_start, name="oauth_github"), |
|
70fa957…
|
ragelink
|
102 |
path("sync/git/connect/gitlab/", views.oauth_gitlab_start, name="oauth_gitlab"), |
|
0c354ac…
|
ragelink
|
103 |
# Per-project OAuth callbacks removed — global /oauth/callback/ handlers |
|
0c354ac…
|
ragelink
|
104 |
# enforce nonce/state validation. Keeping these would bypass that check. |
|
4ce269c…
|
ragelink
|
105 |
path("code/raw/<path:filepath>", views.code_raw, name="code_raw"), |
|
4ce269c…
|
ragelink
|
106 |
path("code/blame/<path:filepath>", views.code_blame, name="code_blame"), |
|
4ce269c…
|
ragelink
|
107 |
path("code/history/<path:filepath>", views.file_history, name="file_history"), |
|
c588255…
|
ragelink
|
108 |
path("watch/", views.toggle_watch, name="toggle_watch"), |
|
4ce269c…
|
ragelink
|
109 |
path("timeline/rss/", views.timeline_rss, name="timeline_rss"), |
|
4ce269c…
|
ragelink
|
110 |
path("docs/", views.fossil_docs, name="docs"), |
|
4ce269c…
|
ragelink
|
111 |
path("docs/<path:doc_path>", views.fossil_doc_page, name="doc_page"), |
|
c588255…
|
ragelink
|
112 |
path("xfer", views.fossil_xfer, name="xfer"), |
|
c588255…
|
ragelink
|
113 |
# Releases |
|
c588255…
|
ragelink
|
114 |
path("releases/", views.release_list, name="releases"), |
|
c588255…
|
ragelink
|
115 |
path("releases/create/", views.release_create, name="release_create"), |
|
c588255…
|
ragelink
|
116 |
path("releases/<str:tag_name>/", views.release_detail, name="release_detail"), |
|
c588255…
|
ragelink
|
117 |
path("releases/<str:tag_name>/edit/", views.release_edit, name="release_edit"), |
|
c588255…
|
ragelink
|
118 |
path("releases/<str:tag_name>/delete/", views.release_delete, name="release_delete"), |
|
c588255…
|
ragelink
|
119 |
path("releases/<str:tag_name>/upload/", views.release_asset_upload, name="release_asset_upload"), |
|
c588255…
|
ragelink
|
120 |
path("releases/<str:tag_name>/assets/<int:asset_id>/", views.release_asset_download, name="release_asset_download"), |
|
c588255…
|
ragelink
|
121 |
path("releases/<str:tag_name>/source.<str:fmt>", views.release_source_archive, name="release_source_archive"), |
|
c588255…
|
ragelink
|
122 |
# CI Status API |
|
c588255…
|
ragelink
|
123 |
path("api/status", views.status_check_api, name="status_check_api"), |
|
c588255…
|
ragelink
|
124 |
path("api/status/<str:checkin_uuid>/badge.svg", views.status_badge, name="status_badge"), |
|
c588255…
|
ragelink
|
125 |
# API Tokens |
|
c588255…
|
ragelink
|
126 |
path("tokens/", views.api_token_list, name="api_tokens"), |
|
c588255…
|
ragelink
|
127 |
path("tokens/create/", views.api_token_create, name="api_token_create"), |
|
c588255…
|
ragelink
|
128 |
path("tokens/<int:token_id>/delete/", views.api_token_delete, name="api_token_delete"), |
|
c588255…
|
ragelink
|
129 |
# Branch Protection |
|
c588255…
|
ragelink
|
130 |
path("branches/protect/", views.branch_protection_list, name="branch_protections"), |
|
c588255…
|
ragelink
|
131 |
path("branches/protect/create/", views.branch_protection_create, name="branch_protection_create"), |
|
c588255…
|
ragelink
|
132 |
path("branches/protect/<int:pk>/edit/", views.branch_protection_edit, name="branch_protection_edit"), |
|
c588255…
|
ragelink
|
133 |
path("branches/protect/<int:pk>/delete/", views.branch_protection_delete, name="branch_protection_delete"), |
|
c588255…
|
ragelink
|
134 |
# Artifact Shunning |
|
c588255…
|
ragelink
|
135 |
path("admin/shun/", views.shun_list_view, name="shun_list"), |
|
c588255…
|
ragelink
|
136 |
path("admin/shun/add/", views.shun_artifact, name="shun_artifact"), |
|
c588255…
|
ragelink
|
137 |
# SQLite Explorer |
|
c588255…
|
ragelink
|
138 |
path("explorer/", views.repo_explorer, name="explorer"), |
|
c588255…
|
ragelink
|
139 |
path("explorer/table/<str:table_name>/", views.repo_explorer_table, name="explorer_table"), |
|
c588255…
|
ragelink
|
140 |
path("explorer/query/", views.repo_explorer_query, name="explorer_query"), |
|
46f6d5e…
|
ragelink
|
141 |
# Bundle export/import |
|
46f6d5e…
|
ragelink
|
142 |
path("bundle/export/", views.bundle_export, name="bundle_export"), |
|
46f6d5e…
|
ragelink
|
143 |
path("bundle/import/", views.bundle_import, name="bundle_import"), |
|
46f6d5e…
|
ragelink
|
144 |
# Chat |
|
46f6d5e…
|
ragelink
|
145 |
path("chat/", views.chat_room, name="chat"), |
|
46f6d5e…
|
ragelink
|
146 |
path("chat/send/", views.chat_send, name="chat_send"), |
|
4ce269c…
|
ragelink
|
147 |
] |