mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 09:55:28 +08:00 
			
		
		
		
	@@ -0,0 +1,16 @@
 | 
			
		||||
using System.Collections.Generic;
 | 
			
		||||
using Microsoft.AspNetCore.Mvc;
 | 
			
		||||
 | 
			
		||||
namespace DownstreamService.Controllers
 | 
			
		||||
{
 | 
			
		||||
    [Route("api/[controller]")]
 | 
			
		||||
    public class CategoryController : Controller
 | 
			
		||||
    {
 | 
			
		||||
        // GET api/values
 | 
			
		||||
        [HttpGet]
 | 
			
		||||
        public IEnumerable<string> Get()
 | 
			
		||||
        {
 | 
			
		||||
            return new[] { "category1", "category2" };
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user