Added startup/shutdown messages to Rest, for troubleshooting bad configuration settings.
Added server nickname configuration option, to be returned in the /status API endpoint Added configuration option for disabling the /check API endpoint in the event that users don't like that. Added /status API endpoint
This commit is contained in:
parent
ce8d12b27f
commit
92d940e5dc
4 changed files with 47 additions and 6 deletions
|
|
@ -44,10 +44,12 @@ namespace TShockAPI
|
|||
Ip = ip;
|
||||
Port = port;
|
||||
Start();
|
||||
Console.WriteLine("TShock REST API loaded on " + ip + ":" + port + ".");
|
||||
}
|
||||
public virtual void Stop()
|
||||
{
|
||||
listener.Stop();
|
||||
Console.WriteLine("TShock REST API disabled.");
|
||||
}
|
||||
|
||||
public void Register(string path, RestCommandD callback)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue