完善功能
This commit is contained in:
@@ -159,6 +159,7 @@ namespace 电子展板.Controller
|
||||
}
|
||||
ActionResult response = new ActionResult(HttpStatusCode.OK);
|
||||
response.Content = new ByteArrayContent(bytes);
|
||||
response.Content.Headers.ContentEncoding.Add("utf-8");
|
||||
response.Content.Headers.ContentType = new MediaTypeHeaderValue(contentType);
|
||||
response.Content.Headers.ContentLength = bytes.Length;
|
||||
return response;
|
||||
|
||||
@@ -28,6 +28,15 @@ namespace 电子展板.Controller
|
||||
return Resouce("/Views/Index.html", "text/html");
|
||||
}
|
||||
|
||||
#region css
|
||||
[HttpGet, Route("favicon.ico")]
|
||||
public ActionResult Favicon_ICO()
|
||||
{
|
||||
return Resouce("/favicon.ico", "image/x-icon");
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
[HttpGet, Route("getConfig")]
|
||||
public ActionResult GetConfig()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user