|
@@ -20,13 +20,22 @@ namespace GxPress.Api.AppControllers
|
|
|
[HttpGet("info")]
|
|
|
public AboutResult About()
|
|
|
{
|
|
|
- var addressUrlDownload= ConfigHelper.GetValue("ServiceAddress:AddressUrlDownload");
|
|
|
+ var addressUrlDownload = ConfigHelper.GetValue("ServiceAddress:AddressUrlDownload");
|
|
|
var aboutResult = new AboutResult
|
|
|
{
|
|
|
AboutUrl = StringUtils.AddDomain("/static/aboutus.html"),
|
|
|
- DownloadUrl =StringUtils.AddDomain($"{addressUrlDownload}/mobile/download")
|
|
|
+ DownloadUrl = StringUtils.AddDomain($"{addressUrlDownload}/mobile/download")
|
|
|
};
|
|
|
return aboutResult;
|
|
|
}
|
|
|
+ [HttpGet("register")]
|
|
|
+ [AllowAnonymous]
|
|
|
+ public bool IsRegister()
|
|
|
+ {
|
|
|
+ var isRegisterValue = ConfigHelper.GetValue("ServiceAddress:IsRegister");
|
|
|
+ if (bool.TryParse(isRegisterValue, out bool isRegister))
|
|
|
+ return isRegister;
|
|
|
+ return false;
|
|
|
+ }
|
|
|
}
|
|
|
}
|