feat: RemoteUrl 加一个接口 /t 来测试连接是否正常
This commit is contained in:
parent
4a5bc24579
commit
31ae784aac
1 changed files with 7 additions and 0 deletions
|
@ -12,6 +12,12 @@ public class SyncFilesController(RemoteSyncServerFactory factory, SqliteDbContex
|
|||
private readonly SqliteDbContext _db = db;
|
||||
private readonly RemoteSyncServerFactory Factory = factory;
|
||||
|
||||
[HttpGet("/t")]
|
||||
public IActionResult ConnnectTest()
|
||||
{
|
||||
return Ok("网络连接正常!");
|
||||
}
|
||||
|
||||
[Route("/websoc")]
|
||||
public async Task WebsocketConnection(string Name)
|
||||
{
|
||||
|
@ -41,6 +47,7 @@ public class SyncFilesController(RemoteSyncServerFactory factory, SqliteDbContex
|
|||
HttpContext.Response.StatusCode = StatusCodes.Status400BadRequest;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 上传文件
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in a new issue