Skip to content

Commit

Permalink
Merge branch 'main' of github.com:blake-mealey/mantle
Browse files Browse the repository at this point in the history
  • Loading branch information
blake-mealey committed Oct 12, 2024
2 parents b1c53a9 + f1ef4e6 commit 7b49966
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions mantle/rbx_api/src/asset_aliases/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
mod models;

use reqwest::header;
use serde_json::json;

use crate::{
errors::RobloxApiResult,
Expand All @@ -21,15 +20,14 @@ impl RobloxApi {
) -> RobloxApiResult<()> {
let req = self
.client
.post(format!(
"https://develop.roblox.com/v1/universes/{}/aliases",
experience_id
))
.json(&json!({
"name": name,
"type": "1",
"targetId": asset_id,
}));
.post("https://apis.roblox.com/content-aliases-api/v1/universes/create-alias")
.header(header::CONTENT_LENGTH, 0)
.query(&[
("universeId", experience_id.to_string().as_str()),
("name", name.as_str()),
("type", "1"),
("targetId", asset_id.to_string().as_str()),
]);

handle(req).await?;

Expand Down

0 comments on commit 7b49966

Please sign in to comment.