Added /users/update/{user} with params:

- password (should be sha512) (this should really be improved, but currently its all we've got)
 - group
Refactored a lot of the return blocks to fit coding style.
This commit is contained in:
Lucas Nicodemus 2011-09-05 03:31:14 -06:00
parent 82be1eee1a
commit a90c4e85a1
2 changed files with 63 additions and 26 deletions

View file

@ -16,7 +16,7 @@ namespace TShockAPI
: base(ip, port)
{
Tokens = new Dictionary<string, object>();
Register(new RestCommand("/token/new/{username}/{password}", newtoken) { RequiesToken = false });
Register(new RestCommand("/token/create/{username}/{password}", newtoken) { RequiesToken = false });
Register(new RestCommand("/token/destroy/{token}", DestroyToken) {RequiesToken = true});
}