Signed-off-by: Will did:plc:dadhhalkfcq3gucaq25hjqon
+19
-2
Diff
round #0
+9
-2
src/server.rs
+9
-2
src/server.rs
···
13
13
use std::net::SocketAddr;
14
14
15
15
use jacquard_api::{
16
-
app_bsky::feed::{get_feed::GetFeedRequest, get_timeline::GetTimelineRequest},
16
+
app_bsky::{
17
+
actor::get_profile::{GetProfile, GetProfileRequest},
18
+
feed::{get_feed::GetFeedRequest, get_timeline::GetTimelineRequest},
19
+
},
17
20
com_atproto::repo::get_record::GetRecordRequest,
18
21
};
19
22
20
23
use crate::xrpc::routes::{
21
-
app_bsky_feed_get_feed, app_bsky_feed_get_timeline, com_atproto_repo_get_record,
24
+
app_bsky_actor_get_profile, app_bsky_feed_get_feed, app_bsky_feed_get_timeline,
25
+
com_atproto_repo_get_record,
22
26
};
23
27
24
28
#[derive(Clone)]
···
61
65
.merge(GetRecordRequest::into_router::<_, AppState, _>(
62
66
com_atproto_repo_get_record,
63
67
))
68
+
.merge(GetProfileRequest::into_router::<_, AppState, _>(
69
+
app_bsky_actor_get_profile,
70
+
))
64
71
.with_state(app_state);
65
72
66
73
let addr: SocketAddr = format!("{host}:{port}")
+10
src/xrpc/routes.rs
+10
src/xrpc/routes.rs
···
2
2
use crate::server::XrpcErrorResponse;
3
3
use axum::{Json, extract::State};
4
4
use jacquard::xrpc::atproto::GetRecordOutput;
5
+
use jacquard_api::app_bsky::actor::get_profile::GetProfileOutput;
6
+
use jacquard_api::app_bsky::actor::get_profile::GetProfileRequest;
5
7
use jacquard_api::app_bsky::feed::get_timeline::GetTimelineOutput;
6
8
use jacquard_api::app_bsky::feed::{
7
9
get_feed::{GetFeedOutput, GetFeedRequest},
···
22
24
return Err(XrpcErrorResponse::not_implemented());
23
25
}
24
26
27
+
pub async fn app_bsky_actor_get_profile(
28
+
State(_): State<AppState>,
29
+
ExtractOptionalServiceAuth(_auth): ExtractOptionalServiceAuth,
30
+
ExtractXrpc(_): ExtractXrpc<GetProfileRequest>,
31
+
) -> Result<Json<GetProfileOutput<'static>>, XrpcErrorResponse> {
32
+
return Err(XrpcErrorResponse::not_implemented());
33
+
}
34
+
25
35
pub async fn app_bsky_feed_get_feed(
26
36
State(_): State<AppState>,
27
37
ExtractOptionalServiceAuth(_auth): ExtractOptionalServiceAuth,
History
1 round
0 comments
willdot.net
submitted
#0
1 commit
expand
collapse
added get profile and return not implemented
Signed-off-by: Will <did:plc:dadhhalkfcq3gucaq25hjqon>
merge conflicts detected
expand
collapse
expand
collapse
- src/server.rs:13
- src/xrpc/routes.rs:2