29 lines
745 B
C#
29 lines
745 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Net.Http;
|
|
using System.Web.Http;
|
|
using WX.CRM.Common;
|
|
|
|
namespace Core.VoiceApi.Controllers
|
|
{
|
|
public class DefaultController : ApiController
|
|
{
|
|
[Route("")]
|
|
[HttpGet]
|
|
public HttpResponseMessage Index()
|
|
{
|
|
return new HttpResponseMessage { Content = new StringContent("Welcome to voice translation !", System.Text.Encoding.UTF8, "application/json") };
|
|
}
|
|
|
|
[Route("CallBack/Test")]
|
|
[HttpPost]
|
|
public void CallBackTest([FromBody]dynamic info)
|
|
{
|
|
LogHelper.Info("获取callback:"+Newtonsoft.Json.JsonConvert.SerializeObject(info));
|
|
}
|
|
|
|
}
|
|
}
|