summaryrefslogtreecommitdiffstats
path: root/adenosine-pds/src/lib.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-11-02 19:00:01 -0700
committerBryan Newbold <bnewbold@robocracy.org>2022-11-02 19:00:11 -0700
commit61ed57975d6d3a5d12eeede5b40f7b38049e75ad (patch)
tree470d9cfd964e8c2a74e1cac2bf232c767a4d7743 /adenosine-pds/src/lib.rs
parent5a9333475518c3a7d9396d120e07d813252a0a09 (diff)
downloadadenosine-61ed57975d6d3a5d12eeede5b40f7b38049e75ad.tar.gz
adenosine-61ed57975d6d3a5d12eeede5b40f7b38049e75ad.zip
pds: fix some PLC and DID bugs
Diffstat (limited to 'adenosine-pds/src/lib.rs')
-rw-r--r--adenosine-pds/src/lib.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/adenosine-pds/src/lib.rs b/adenosine-pds/src/lib.rs
index e52cb69..8263ddc 100644
--- a/adenosine-pds/src/lib.rs
+++ b/adenosine-pds/src/lib.rs
@@ -6,15 +6,16 @@ use std::fmt;
use std::path::PathBuf;
use std::sync::Mutex;
-use ipfs_sqlite_block_store::BlockStore;
-
mod car;
+mod crypto;
mod db;
+mod did;
mod models;
pub mod mst;
mod repo;
pub use car::{load_car_to_blockstore, load_car_to_sqlite};
+pub use crypto::{KeyPair, PubKey};
pub use db::AtpDatabase;
pub use models::*;
pub use repo::{RepoCommit, RepoStore};
@@ -112,6 +113,9 @@ fn xrpc_get_atproto(
request: &Request,
) -> Result<serde_json::Value> {
match method {
+ "getAccountsConfig" => {
+ Ok(json!({"availableUserDomains": ["test"], "inviteCodeRequired": false}))
+ }
"getRecord" => {
let did = request.get_param("user").unwrap();
let collection = request.get_param("collection").unwrap();