improve appsettings.json in Maui client
This commit is contained in:
13
Oqtane.Maui/MauiConstants.cs
Normal file
13
Oqtane.Maui/MauiConstants.cs
Normal file
@ -0,0 +1,13 @@
|
||||
namespace Oqtane.Maui;
|
||||
|
||||
public static class MauiConstants
|
||||
{
|
||||
// the API service url (used as fallback if not set in appsettings.json)
|
||||
public static string ApiUrl = "";
|
||||
//public static string ApiUrl = "http://localhost:44357/"; // for local development (Oqtane.Server must be already running for MAUI client to connect)
|
||||
//public static string apiurl = "http://localhost:44357/sitename/"; // local microsite example
|
||||
//public static string apiurl = "https://www.dnfprojects.com/"; // for testing remote site
|
||||
|
||||
// specify if you wish to allow users to override the url via appsettings.json in the AppDataDirectory
|
||||
public static bool UseAppSettings = true;
|
||||
}
|
Reference in New Issue
Block a user