use the production server by default,

or set either DEV, LUA, or YAVSC at compilation time
to choose another one.
This commit is contained in:
Paul Schneider 2016-11-14 12:39:27 +01:00
commit 8a8167a08f

View file

@ -13,7 +13,19 @@ namespace BookAStar
#region Uri #region Uri
public const string YavscHomeUrl = "http://dev.pschneider.fr"; #if DEV
public const string YavscHomeUrl = "https://dev.pschneider.fr";
#else
#if YAVSC
public const string YavscHomeUrl = "https://yavsc.pschneider.fr";
#else
#if LUA
public const string YavscHomeUrl = "https://lua.pschneider.fr";
#else
public const string YavscHomeUrl = "https://booking.pschneider.fr";
#endif
#endif
#endif
public static readonly string YavscApiUrl = YavscHomeUrl + "/api"; public static readonly string YavscApiUrl = YavscHomeUrl + "/api";
public static readonly string MobileRegistrationUrl = YavscApiUrl + "/gcm/register"; public static readonly string MobileRegistrationUrl = YavscApiUrl + "/gcm/register";
public static readonly string UserInfoUrl = YavscApiUrl + "/me"; public static readonly string UserInfoUrl = YavscApiUrl + "/me";