REST endpoint /lists/bans is now /v2/lists/bans
Added REST endpoint /v2/lists/players - JSON list of players Deprecated REST endpoint /lists/players
This commit is contained in:
parent
454403d495
commit
6cb6e19f23
2 changed files with 11 additions and 1 deletions
|
|
@ -121,6 +121,7 @@ namespace Rests
|
|||
|
||||
var str = JsonConvert.SerializeObject(obj, Formatting.Indented);
|
||||
e.Response.Connection.Type = ConnectionType.Close;
|
||||
e.Response.Add(new ContentTypeHeader("application/json"));
|
||||
e.Response.Body.Write(Encoding.ASCII.GetBytes(str), 0, str.Length);
|
||||
e.Response.Status = HttpStatusCode.OK;
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue