aboutsummaryrefslogtreecommitdiffstats
path: root/adenosine-pds/src/lib.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-11-10 17:28:06 -0800
committerBryan Newbold <bnewbold@robocracy.org>2022-11-10 17:28:06 -0800
commit7b2e84309102284f7cc2ebc8efdbf3575eda547b (patch)
treec0899fc4b062c64c1df823fdcab5a627df3fac8b /adenosine-pds/src/lib.rs
parent04dbd8aafa479a496f7eb4c4e1dcb07253ebfa79 (diff)
downloadadenosine-7b2e84309102284f7cc2ebc8efdbf3575eda547b.tar.gz
adenosine-7b2e84309102284f7cc2ebc8efdbf3575eda547b.zip
pds: homepage handle, not did
Diffstat (limited to 'adenosine-pds/src/lib.rs')
-rw-r--r--adenosine-pds/src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/adenosine-pds/src/lib.rs b/adenosine-pds/src/lib.rs
index 3d70d08..2414b79 100644
--- a/adenosine-pds/src/lib.rs
+++ b/adenosine-pds/src/lib.rs
@@ -48,7 +48,7 @@ pub struct AtpServiceConfig {
pub public_url: String,
pub registration_domain: Option<String>,
pub invite_code: Option<String>,
- pub homepage_did: Option<Did>,
+ pub homepage_handle: Option<String>,
}
impl Default for AtpServiceConfig {
@@ -58,7 +58,7 @@ impl Default for AtpServiceConfig {
public_url: "http://localhost".to_string(),
registration_domain: None,
invite_code: None,
- homepage_did: None,
+ homepage_handle: None,
}
}
}
@@ -199,8 +199,8 @@ impl AtpService {
(GET) ["/u/{handle}", handle: String] => {
web_wrap(account_view_handler(&srv, &handle, request))
},
- (GET) ["/u/{did}/post/{tid}", did: Did, tid: Tid] => {
- web_wrap(thread_view_handler(&srv, &did, &tid, request))
+ (GET) ["/u/{handle}/post/{tid}", handle: String, tid: Tid] => {
+ web_wrap(thread_view_handler(&srv, &handle, &tid, request))
},
(GET) ["/at/{did}", did: Did] => {
web_wrap(repo_view_handler(&srv, &did, request))