Update Core.cs
This commit is contained in:
parent
0a6d397921
commit
be1e274175
1 changed files with 4 additions and 0 deletions
|
|
@ -299,6 +299,8 @@ namespace BetterSecondBot.HttpService
|
||||||
[About("Makes a request to the core commands lib<br/>See LSL example on how to create a core command auth code")]
|
[About("Makes a request to the core commands lib<br/>See LSL example on how to create a core command auth code")]
|
||||||
[ArgHints("Request Body", "JsonObject", "Command: string<br/>Args: string[]<br/>AuthCode: string")]
|
[ArgHints("Request Body", "JsonObject", "Command: string<br/>Args: string[]<br/>AuthCode: string")]
|
||||||
[ReturnHints("accepted")]
|
[ReturnHints("accepted")]
|
||||||
|
[ReturnHints("Auth not accepted")]
|
||||||
|
[ReturnHints("Failed")]
|
||||||
[Route(HttpVerbs.Post, "/command/{token}")]
|
[Route(HttpVerbs.Post, "/command/{token}")]
|
||||||
public async Task<object> command(string token)
|
public async Task<object> command(string token)
|
||||||
{
|
{
|
||||||
|
|
@ -315,7 +317,9 @@ namespace BetterSecondBot.HttpService
|
||||||
{
|
{
|
||||||
return BasicReply("accepted");
|
return BasicReply("accepted");
|
||||||
}
|
}
|
||||||
|
return BasicReply("Failed");
|
||||||
}
|
}
|
||||||
|
return BasicReply("Auth not accepted");
|
||||||
}
|
}
|
||||||
return BasicReply("Token not accepted");
|
return BasicReply("Token not accepted");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue