This commit is contained in:
ntr committed 2023-09-03 18:08:02 +10:00
1 parent 2f292cf1aa
commit ee4830d99e
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -42,7 +42,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();
@@ -95,7 +95,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) {