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:
Lucas Nicodemus 2012-02-09 22:43:54 -07:00
parent 454403d495
commit 6cb6e19f23
2 changed files with 11 additions and 1 deletions

View file

@ -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;