mirror of
https://github.com/Drop-OSS/drop-app
synced 2026-08-27 22:23:04 -04:00
fix(metadata): update routes for new server
This commit is contained in:
parent
4e93eb440c
commit
7ab53f3357
2 changed files with 3 additions and 3 deletions
|
|
@ -133,7 +133,7 @@ impl GameDownloadAgent {
|
|||
let manifest_url = base_url
|
||||
.join(
|
||||
format!(
|
||||
"/api/v1/client/metadata/manifest?id={}&version={}",
|
||||
"/api/v1/client/game/manifest?id={}&version={}",
|
||||
self.id,
|
||||
encode(&self.version)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -209,7 +209,7 @@ fn fetch_game_verion_options_logic(
|
|||
let base_url = DB.fetch_base_url();
|
||||
|
||||
let endpoint =
|
||||
base_url.join(format!("/api/v1/client/metadata/versions?id={}", game_id).as_str())?;
|
||||
base_url.join(format!("/api/v1/client/game/versions?id={}", game_id).as_str())?;
|
||||
let header = generate_authorization_header();
|
||||
|
||||
let client = reqwest::blocking::Client::new();
|
||||
|
|
@ -351,7 +351,7 @@ pub fn on_game_complete(
|
|||
|
||||
let endpoint = base_url.join(
|
||||
format!(
|
||||
"/api/v1/client/metadata/version?id={}&version={}",
|
||||
"/api/v1/client/game/version?id={}&version={}",
|
||||
meta.id,
|
||||
encode(meta.version.as_ref().unwrap())
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue