mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 20:10:50 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			367 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			367 B
		
	
	
	
		
			C#
		
	
	
	
	
	
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" };
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |