mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-26 01:34:38 +10:00
feat: use new depot endpoints in game specialisation
This commit is contained in:
@@ -63,7 +63,7 @@ pub async fn fetch_version_data(
|
|||||||
version_id: String,
|
version_id: String,
|
||||||
) -> Result<VersionResponseBody, ErrorOption> {
|
) -> Result<VersionResponseBody, ErrorOption> {
|
||||||
let version_data_response = CLIENT
|
let version_data_response = CLIENT
|
||||||
.get(REMOTE_URL.join("/api/v1/admin/depot/manifest")?)
|
.get(REMOTE_URL.join("/api/v1/admin/depot/torrential/manifest")?)
|
||||||
.query(&VersionQuery {
|
.query(&VersionQuery {
|
||||||
game: game_id,
|
game: game_id,
|
||||||
version: version_id,
|
version: version_id,
|
||||||
@@ -110,7 +110,7 @@ pub async fn fetch_instance_games(
|
|||||||
init_data: &AppInitData,
|
init_data: &AppInitData,
|
||||||
) -> Result<Vec<SkeletonGame>, ErrorOption> {
|
) -> Result<Vec<SkeletonGame>, ErrorOption> {
|
||||||
let context_response = CLIENT
|
let context_response = CLIENT
|
||||||
.get(REMOTE_URL.join("/api/v1/admin/depot/versions")?)
|
.get(REMOTE_URL.join("/api/v1/admin/depot/torrential/versions")?)
|
||||||
.header("Authorization", format!("Bearer {}", init_data.key))
|
.header("Authorization", format!("Bearer {}", init_data.key))
|
||||||
.send()
|
.send()
|
||||||
.await?;
|
.await?;
|
||||||
|
|||||||
Reference in New Issue
Block a user