mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-18 21:28:16 +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