Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Scripts/Auth/AuthApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ private enum AuthRequestKind
BuyMarketplaceListing
}

[Export] public string BackendBaseUrl = "http://127.0.0.1:8000";
[Export] public string BackendBaseUrl = BackendDefaults.BackendBaseUrl;
[Export] public bool OfflineMode = false;

private HTTPRequest _request;
Expand Down
2 changes: 1 addition & 1 deletion Scripts/Auth/AuthFlowController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/// </summary>
public class AuthFlowController : Node
{
[Export] public string BackendBaseUrl = "http://127.0.0.1:8000";
[Export] public string BackendBaseUrl = BackendDefaults.BackendBaseUrl;

public event Action Authenticated;
public event Action LoggedOut;
Expand Down
4 changes: 4 additions & 0 deletions Scripts/BackendDefaults.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
public static class BackendDefaults
{
public const string BackendBaseUrl = "http://127.0.0.1:8000"; // or https://questfantasy-api.codesapp.org/
}
2 changes: 1 addition & 1 deletion Scripts/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
public class Main : Node2D
{

[Export] public string BackendBaseUrl = "http://127.0.0.1:8000";
[Export] public string BackendBaseUrl = BackendDefaults.BackendBaseUrl;
[Export] public bool EnableMobileInputUI = true; // Force enable virtual D-pad for testing

private AuthFlowController _authFlowController;
Expand Down
Loading