Fixed all REST endpoints to use RestObjects instead of Dictionaries.

This commit is contained in:
CoderCow 2013-08-02 10:20:11 +02:00
parent 11f3099d30
commit 9a40c81b49
3 changed files with 18 additions and 39 deletions

View file

@ -252,9 +252,8 @@ namespace TShockAPI
private object ServerTokenTest(RestVerbs verbs, IParameterCollection parameters, SecureRest.TokenData tokenData)
{
return new Dictionary<string,object>
return new RestObject()
{
{"status", "200"},
{"response", "Token is valid and was passed through correctly."},
{"associateduser", tokenData.Username}
};