Fixed all REST endpoints to use RestObjects instead of Dictionaries.
This commit is contained in:
parent
11f3099d30
commit
9a40c81b49
3 changed files with 18 additions and 39 deletions
|
|
@ -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}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue