23 lines
497 B
C#
23 lines
497 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
using Microsoft.AspNetCore.Http;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace OcelotStudy.WebApiB.Controllers
|
|
{
|
|
[Route("api/[controller]/[action]")]
|
|
[ApiController]
|
|
public class ServiceBController : ControllerBase
|
|
{
|
|
public IActionResult Ping()
|
|
{
|
|
var data = new { Name="服务B",Describe="测试服务B" };
|
|
|
|
return Ok(data);
|
|
}
|
|
}
|
|
}
|