Added -rest-enabled, which will define if the REST API is enabled from command line.

This commit is contained in:
Lucas Nicodemus 2012-02-04 20:14:34 -07:00
parent 7cfc73ea4d
commit 70e8bb9759

View file

@ -372,6 +372,10 @@ namespace TShockAPI
string token = Convert.ToString(parms[++i]);
RESTStartupTokens.Add(token, "null");
}
if (parms[i].ToLower() == "-rest-enabled")
{
Config.RestApiEnabled = Convert.ToBoolean(parms[++i]);
}
}
}