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:
Lucas Nicodemus 2011-09-05 00:30:19 -06:00
parent ce8d12b27f
commit 92d940e5dc
4 changed files with 47 additions and 6 deletions

View file

@ -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)