From de70805f1f2b0bf6ff513719e42390eb671c9a50 Mon Sep 17 00:00:00 2001 From: Xun Sun Date: Mon, 4 Nov 2024 14:10:00 +0800 Subject: [PATCH] Disable POST /Socket --- ThuInfoWeb/Controllers/ApiController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ThuInfoWeb/Controllers/ApiController.cs b/ThuInfoWeb/Controllers/ApiController.cs index 62c3a82..ff75eb9 100644 --- a/ThuInfoWeb/Controllers/ApiController.cs +++ b/ThuInfoWeb/Controllers/ApiController.cs @@ -123,7 +123,7 @@ static string Parse(Socket.SocketStatus status) } } - [HttpPost] + /* [HttpPost] [Route("Socket")] public async Task Socket(SocketDto dto) { @@ -131,7 +131,7 @@ public async Task Socket(SocketDto dto) if (result != 1) return BadRequest(); return Ok(); - } + } */ [Route("Version/{os}")] public IActionResult Version([FromRoute] string os)