diff --git a/Assets/Src/LapService.cs b/Assets/Src/LapService.cs index af005e6..615c0f3 100644 --- a/Assets/Src/LapService.cs +++ b/Assets/Src/LapService.cs @@ -37,7 +37,7 @@ public class LapService { } public IEnumerator GetLapTimes() { - string uri = $"https://spacerace.systems/LapTimes?userId={_player.Id}&mapName={_mapName}"; + string uri = $"https://spacerace.systems/api/LapTimes?userId={_player.Id}&mapName={_mapName}"; using (UnityWebRequest req = UnityWebRequest.Get(uri)) { yield return req.SendWebRequest(); @@ -90,7 +90,7 @@ public class LapService { Debug.Log($"Posting lap: {JsonConvert.SerializeObject(dto)}"); - using (UnityWebRequest req = UnityWebRequest.Post("https://spacerace.systems/Lap", JsonConvert.SerializeObject(dto), "application/json")) { + using (UnityWebRequest req = UnityWebRequest.Post("https://spacerace.systems/api/Lap", JsonConvert.SerializeObject(dto), "application/json")) { yield return req.SendWebRequest(); if (req.result != UnityWebRequest.Result.Success) {