Files
EpinelPS/nksrv/IntlServer/CodeStatusEndpoint.cs
2024-07-05 14:08:05 -04:00

23 lines
566 B
C#

using EmbedIO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
namespace nksrv.IntlServer
{
public class CodeStatusEndpoint : IntlMsgHandler
{
public override bool RequiresAuth => false;
protected override async Task HandleAsync()
{
// pretend that any code is valid
await WriteJsonStringAsync("{\"expire_time\":759,\"msg\":\"Success\",\"ret\":0,\"seq\":\""+Seq+"\"}");
}
}
}