httpd: Rename endpoint /xyz.radworks.job/ -> /jobs/

This commit is contained in:
Rūdolfs Ošiņš
2026-04-23 15:57:54 +02:00
parent 269c6e52ea
commit fc648a6392
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -395,7 +395,7 @@ export class Client {
return this.#fetcher.fetchOk(
{
method: "GET",
path: `repos/${rid}/xyz.radworks.job/${commit}`,
path: `repos/${rid}/jobs/${commit}`,
options,
},
jobsSchema,
+1 -1
View File
@@ -45,7 +45,7 @@ pub fn router(ctx: Context) -> Router {
.route("/repos/{rid}/remotes/{peer}", get(remote_handler))
.route("/repos/{rid}/blob/{sha}/{*path}", get(blob_handler))
.route("/repos/{rid}/readme/{sha}", get(readme_handler))
.route("/repos/{rid}/xyz.radworks.job/{sha}", get(job::handler))
.route("/repos/{rid}/jobs/{sha}", get(job::handler))
.route("/repos/{rid}/issues", get(issues_handler))
.route("/repos/{rid}/issues/{id}", get(issue_handler))
.route("/repos/{rid}/patches", get(patches_handler))
+1 -1
View File
@@ -121,7 +121,7 @@ impl FindJobs for JobsSource<'_> {
}
/// Get jobs for a commit.
/// `GET /repos/:rid/xyz.radworks.job/:sha`
/// `GET /repos/:rid/jobs/:sha`
pub async fn handler(
State(ctx): State<Context>,
Path((rid, sha)): Path<(RepoId, Oid)>,