20 lines
520 B
C#
20 lines
520 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Http;
|
|
using System.Web.Routing;
|
|
|
|
namespace Core.VoiceApi
|
|
{
|
|
public class WebApiApplication : System.Web.HttpApplication
|
|
{
|
|
protected void Application_Start()
|
|
{
|
|
GlobalConfiguration.Configure(WebApiConfig.Register);
|
|
var format = GlobalConfiguration.Configuration.Formatters;
|
|
format.XmlFormatter.SupportedMediaTypes.Clear();//清除xml格式
|
|
}
|
|
}
|
|
}
|