+2
-4
slingshot/src/server.rs
+2
-4
slingshot/src/server.rs
···
133
133
#[oai(path = "/com.atproto.repo.getRecord", method = "get")]
134
134
async fn get_record(
135
135
&self,
136
-
/// The DID of the repo
137
-
///
138
-
/// NOTE: handles should be accepted here but this is still TODO in slingshot
136
+
/// The DID or handle of the repo
139
137
#[oai(example = "example_did")]
140
138
Query(repo): Query<String>,
141
139
/// The NSID of the record collection
···
150
148
///
151
149
/// If specified and a newer version of the record exists, returns 404 not
152
150
/// found. That is: slingshot only retains the most recent version of a
153
-
/// record.
151
+
/// record. (TODO: verify bsky behaviour for mismatched/old CID)
154
152
Query(cid): Query<Option<String>>,
155
153
) -> GetRecordResponse {
156
154
let did = match Did::new(repo.clone()) {