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/GetServerInfo.cs

    r453 r454  
    11using System;
    2 using System.Net;
    32using AllocsFixes.JSON;
     3using Webserver;
     4using Webserver.WebAPI;
    45
    5 namespace AllocsFixes.NetConnections.Servers.Web.API {
    6         public class GetServerInfo : WebAPI {
    7                 public override void HandleRequest (HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _user,
    8                         int _permissionLevel) {
     6namespace AllocsFixes.WebAPIs {
     7        public class GetServerInfo : AbsWebAPI {
     8                public override void HandleRequest (RequestContext _context) {
    99                        JSONObject serverInfo = new JSONObject ();
    1010
     
    4242
    4343
    44                         WriteJSON (_resp, serverInfo);
     44                        LegacyApiHelper.WriteJSON (_context.Response, serverInfo);
    4545                }
    4646        }
Note: See TracChangeset for help on using the changeset viewer.