gets farther now

This commit is contained in:
recroom2016
2022-02-19 00:35:20 -05:00
parent 57de479634
commit 952c246464
8 changed files with 134 additions and 4 deletions

View File

@@ -5,6 +5,7 @@ using System.Text;
using System.Threading;
using api;
using api2018;
using Newtonsoft.Json;
namespace server
{
@@ -237,6 +238,10 @@ namespace server
{
s = "";
}
if (Url == "objectives/v1/myprogress")
{
s = JsonConvert.SerializeObject(new Objective2018());
}
Console.WriteLine("API Response: " + s);
byte[] bytes = Encoding.UTF8.GetBytes(s);
response.ContentLength64 = (long)bytes.Length;