Skip to content

Commit

Permalink
Fix issues?
Browse files Browse the repository at this point in the history
  • Loading branch information
joepio committed Jul 23, 2024
1 parent c741566 commit 286d3df
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions lib/src/populate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,8 @@ pub fn populate_collections(store: &impl Storelike) -> AtomicResult<()> {
pub fn populate_endpoints(store: &crate::Db) -> AtomicResult<()> {
use crate::atomic_url::Routes;

let endpoints = crate::plugins::default_endpoints();
let endpoints_collection = store.get_server_url().set_route(Routes::Endpoints);
for endpoint in endpoints {
for endpoint in crate::endpoints::build_default_endpoints() {
let mut resource = endpoint.to_resource(store)?;
resource.set(
urls::PARENT.into(),
Expand Down
2 changes: 2 additions & 0 deletions lib/src/resources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
//! Has methods for saving resources and getting properties inside them.
use crate::commit::{CommitOpts, CommitResponse};
use crate::urls;
use crate::utils::random_string;
use crate::values::{SubResource, Value};
use crate::Query;
use crate::{commit::CommitBuilder, errors::AtomicResult};
use crate::{
mapping::is_url,
Expand Down
1 change: 1 addition & 0 deletions lib/src/urls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ pub const PATH_CONFIRM_EMAIL: &str = "/confirm-email";
pub const PATH_RESET_PUBKEY: &str = "/reset-public-key";
pub const PATH_CONFIRM_PUBKEY: &str = "/confirm-public-key";
pub const PATH_ADD_PUBKEY: &str = "/add-public-key";
pub const PATH_CONFIRM_PUBKEY: &str = "/confirm-add-public-key";
pub const PATH_CONFIRM_RESET: &str = "/confirm-reset-public-key";
pub const PATH_QUERY: &str = "/query";
pub const PATH_PRUNE_TESTS: &str = "/prunetests";

0 comments on commit 286d3df

Please sign in to comment.