优化,完善功能
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using Nancy;
|
||||
using Nancy.Extensions;
|
||||
using Nancy.ModelBinding;
|
||||
using Nancy;
|
||||
using Nancy.ModelBinding;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
@@ -57,7 +56,7 @@ namespace 电子展板
|
||||
//AsJson会将首字母小写
|
||||
return Response.AsText(JsonHelper.ToJson(GlobalVariable.Config), "application/json", Encoding.UTF8);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
@@ -97,7 +96,7 @@ namespace 电子展板
|
||||
filePathList.Add($"/Upload/{fileName}");
|
||||
}
|
||||
var result = new { state = 1, message = "上传成功", data = filePathList.GetStrArray() };
|
||||
return Response.AsJson(result);
|
||||
return Response.AsJson(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -137,4 +136,19 @@ namespace 电子展板
|
||||
|
||||
|
||||
}
|
||||
|
||||
//public class ApplicationBootstrapper : DefaultNancyBootstrapper
|
||||
//{
|
||||
// protected override void ApplicationStartup(TinyIoCContainer container, IPipelines pipelines)
|
||||
// {
|
||||
// SwaggerMetadataProvider.SetInfo("API", "v1.0", "电子展板", new Swagger.ObjectModel.Contact
|
||||
// {
|
||||
// EmailAddress = "18862253202@qq.com",
|
||||
// Name = "大师兄法号随缘",
|
||||
// Url = "https://www.cnblogs.com/zjwno1"
|
||||
// });
|
||||
|
||||
// base.ApplicationStartup(container, pipelines);
|
||||
// }
|
||||
//}
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>-->
|
||||
<PackageReference Include="HandyControl" Version="3.5.1" />
|
||||
<!--<PackageReference Include="Nancy.Swagger.Alyce" Version="2.2.76" />-->
|
||||
<PackageReference Include="PropertyChanged.Fody" Version="4.1.0" />
|
||||
<PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.135" />
|
||||
</ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user