~furry/mamoru-server

72b3d023792637ca645d4c18bc42c68b9ce9b024 — nora 2 months ago fece8af
correctly load exiled version
1 files changed, 7 insertions(+), 1 deletions(-)

M Routes/StatusRoute.cs
M Routes/StatusRoute.cs => Routes/StatusRoute.cs +7 -1
@@ 1,3 1,4 @@
using System.Reflection;
using Mamoru.Models.Mamoru;
using Mamoru.Utils;
using WebSocketSharp.Net;


@@ 9,7 10,12 @@ public class StatusRoute : AbstractRoute {
  public override bool Cors => true;

  public override void Get(ref HttpListenerRequest req, ref HttpListenerResponse res) {
    var status = new Status(true, true, "9.0.0-alpha-2", "1.0.0-alpha");
    var status = new Status(
      true, 
      true, 
      Assembly.GetAssembly(typeof(Exiled.Loader.Loader)).GetName().Version.ToString(), 
      "1.0.0-alpha"
    );
    JsonResponse.Create(ref res, status);
  }
}
\ No newline at end of file