新增健康状况检查接口
This commit is contained in:
@@ -34,6 +34,19 @@ public class TestService : IDynamicApiController, ITransient
|
|||||||
_databaseService = databaseService;
|
_databaseService = databaseService;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 用于健康检查应用程序
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
[HttpGet("heart-beat")]
|
||||||
|
[AllowAnonymous]
|
||||||
|
[IgnoreLog]
|
||||||
|
[DisableCors]
|
||||||
|
public async Task<dynamic> Heartbeat()
|
||||||
|
{
|
||||||
|
return await Task.FromResult<dynamic>(new { reply = "应用程序运行正常" });
|
||||||
|
}
|
||||||
|
|
||||||
[HttpGet("test")]
|
[HttpGet("test")]
|
||||||
[AllowAnonymous]
|
[AllowAnonymous]
|
||||||
[IgnoreLog]
|
[IgnoreLog]
|
||||||
|
|||||||
Reference in New Issue
Block a user