Skip to content

Commit

Permalink
update endpoint to install hosted happ via hpos-api
Browse files Browse the repository at this point in the history
  • Loading branch information
peeech committed Jun 14, 2024
1 parent d32b1f2 commit 2a97509
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/entries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub struct HappPreferences {
}
impl HappPreferences {
/// Save preferences to a file under {SL_PREFS_PATH}
/// which allows hpos-holochain-api to read current values
/// which allows hpos-api to read current values
pub fn save(self) -> Result<Self> {
if let Ok(path) = env::var("SL_PREFS_PATH") {
trace!("Writing default servicelogger prefs to {}", &path);
Expand Down
6 changes: 3 additions & 3 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ pub async fn install_holo_hosted_happs(
let client = reqwest::Client::new();

// Iterate through the vec and
// Call http://localhost/holochain-api/install_hosted_happ
// Call http://localhost/api/v2/apps/hosted/install
// for each WrappedActionHash to install the hosted_happ
for HappBundle {
happ_id,
Expand Down Expand Up @@ -154,14 +154,14 @@ pub async fn install_holo_hosted_happs(
mem_proof
);

// We'd like to move the logic from `install_hosted_happ` out of `hpos-holochain-api` and into this service where it belongs
// We'd like to move the logic from `install_hosted_happ` out of `hpos-api` and into this service where it belongs
let body = entries::InstallHappBody {
happ_id: happ_id.to_string(),
preferences: preferences.clone(),
membrane_proofs: mem_proof.clone(),
};
let response = client
.post("http://localhost/holochain-api/install_hosted_happ")
.post("http://localhost/api/v2/apps/hosted/install")
.json(&body)
.send()
.await?;
Expand Down

0 comments on commit 2a97509

Please sign in to comment.