mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-27 04:22:51 +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" };
|
|
}
|
|
}
|
|
}
|