TestAPIController.cs 427 B

1234567891011121314151617181920
  1. using Microsoft.AspNetCore.Mvc;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Threading.Tasks;
  6. namespace MQTT_Broker.Controllers
  7. { //[Authorize]
  8. [Route("api/[controller]")]
  9. [ApiController]
  10. public class TestAPIController
  11. {
  12. [HttpGet("aa")]
  13. public IActionResult Get()
  14. {
  15. return new JsonResult(new { a = "aa", c = "bb" });
  16. }
  17. }
  18. }