TestController.cs 472 B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Threading.Tasks;
  5. using Microsoft.AspNetCore.Mvc;
  6. // For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
  7. namespace TEAMModelOS.Admin.Controllers
  8. {
  9. [Route("api/[controller]")]
  10. //[ApiController]
  11. public class TestController : Controller
  12. {
  13. [HttpGet("test")]
  14. public string Test(string test)
  15. {
  16. return "test"+test;
  17. }
  18. }
  19. }