Files
asesidaa_GC-local-server-re…/GC-local-server-rewrite/controllers/OptionServiceController.cs
T
2022-04-12 03:08:03 +08:00

21 lines
511 B
C#

using System.Net.Mime;
using System.Text;
using EmbedIO;
using EmbedIO.Routing;
using EmbedIO.WebApi;
namespace GCLocalServerRewrite.controllers;
public class OptionServiceController : WebApiController
{
[Route(HttpVerbs.Get, "/PlayInfo.php")]
public string OptionService()
{
HttpContext.Response.ContentType = MediaTypeNames.Text.Plain;
HttpContext.Response.ContentEncoding = new UTF8Encoding(false);
HttpContext.Response.KeepAlive = true;
return "1";
}
}