Added -rest-enabled, which will define if the REST API is enabled from command line.
This commit is contained in:
parent
7cfc73ea4d
commit
70e8bb9759
1 changed files with 4 additions and 0 deletions
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue