mirror of
https://github.com/yawaflua/WebSockets.git
synced 2026-02-04 14:04:11 +02:00
Adds more confs for handlers and try to fix error with swagger when using attribute
This commit is contained in:
15
Examples/Controllers/TestDefaultController.cs
Normal file
15
Examples/Controllers/TestDefaultController.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Examples.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("/api/v1/test")]
|
||||
public class TestDefaultController : ControllerBase
|
||||
{
|
||||
|
||||
[HttpGet]
|
||||
public async Task<IActionResult> TestController([FromBody] string TextTest)
|
||||
{
|
||||
return Ok("Test");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user