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:
parent
82be1eee1a
commit
a90c4e85a1
2 changed files with 63 additions and 26 deletions
|
|
@ -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});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue