修改图片缓存,增加新日志,JSON返回驼峰
This commit is contained in:
1 parent
72f16034ac
commit
b86134357c
12 files changed
+432
-152
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Newtonsoft.Json.Serialization;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
@@ -23,10 +24,15 @@ namespace KJD_Web
|
||||
routeTemplate: "{controller}/{action}/{id}",
|
||||
defaults: new { id = RouteParameter.Optional }
|
||||
);
|
||||
|
||||
var jsonFormatter = config.Formatters.JsonFormatter;
|
||||
jsonFormatter.SerializerSettings.ContractResolver =
|
||||
new CamelCasePropertyNamesContractResolver();
|
||||
|
||||
config.Formatters.Remove(config.Formatters.XmlFormatter);
|
||||
config.Filters.Add(new NotFoundMessageFilter());
|
||||
config.MessageHandlers.Add(new NotFoundMessageHandler());
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user