21 lines
511 B
C#
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";
|
|
}
|
|
} |