Skip to content

Commit

Permalink
Remove APIRoot variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ominitay committed Jan 25, 2021
1 parent 800b835 commit aa22ef6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Beataroni/Beataroni/Services/BeatModsV1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ public class BeatModsV1

/// API endpoints/urls
/// Note: You MUST not have '//' in the resulting URLs, beatmods can't handle this
private static readonly string APIRoot = "https://beatmods.com/api/v1";
private static readonly string APIDownload = "https://beatmods.com";
private static readonly string APIVersion = "https://versions.beatmods.com/versions.json";
private static readonly string APIMod = "mod";
private static readonly string APIMod = "https://beatmods.com/api/v1/mod";

/// Fetch list of beatsaber/mod versions
/// List will be returned in order sent from server - Should be newest -> oldest
Expand Down Expand Up @@ -55,7 +54,7 @@ public static IList<string> FetchBSVersions()
/// Typical filters would be game version, installation type, mod status
public static IList<Mod> FetchMods( Dictionary<string, string> filters )
{
var endpoint = $"{APIRoot}/{APIMod}";
var endpoint = $"{APIMod}";

if( filters != null && filters.Count > 0 )
{
Expand Down

0 comments on commit aa22ef6

Please sign in to comment.