Radish alpha
r
rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5
Radicle web interface
Radicle
Git
httpd: Rename endpoint /xyz.radworks.job/ -> /jobs/
Rūdolfs Ošiņš committed 7 days ago
commit fc648a6392eaff600a236d61b67b756bac8f81e8
parent 269c6e5
3 files changed +3 -3
modified http-client/lib/repo.ts
@@ -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,
modified radicle-httpd/src/api/v1/repos.rs
@@ -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))
modified radicle-httpd/src/api/v1/repos/job.rs
@@ -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)>,