Update Core.cs

This commit is contained in:
Madpeterz 2021-02-12 02:55:19 +00:00
parent 0a6d397921
commit be1e274175

View file

@ -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");
} }