Ignore:
Timestamp:
Jul 28, 2023, 8:42:10 PM (16 months ago)
Author:
alloc
Message:

24_29_43
Switched over to vanilla Web infrastructure

Location:
binary-improvements/MapRendering/API
Files:
1 added
1 moved

Legend:

Unmodified
Added
Removed
  • binary-improvements/MapRendering/API/GetStats.cs

    r453 r454  
    1 using System.Net;
    21using AllocsFixes.JSON;
    32using AllocsFixes.LiveData;
     3using Webserver;
     4using Webserver.WebAPI;
    45
    5 namespace AllocsFixes.NetConnections.Servers.Web.API {
    6         public class GetStats : WebAPI {
    7                 public override void HandleRequest (HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _user,
    8                         int _permissionLevel) {
     6namespace AllocsFixes.WebAPIs {
     7        public class GetStats : AbsWebAPI {
     8                public override void HandleRequest (RequestContext _context) {
    99                        JSONObject result = new JSONObject ();
    1010
     
    1919                        result.Add ("animals", new JSONNumber (Animals.Instance.GetCount ()));
    2020
    21                         WriteJSON (_resp, result);
     21                        LegacyApiHelper.WriteJSON (_context.Response, result);
    2222                }
    2323
Note: See TracChangeset for help on using the changeset viewer.