From be1e2741757e72dcdeec06e91f2dc9e03a1f0090 Mon Sep 17 00:00:00 2001 From: Madpeterz <57852827+Madpeterz@users.noreply.github.com> Date: Fri, 12 Feb 2021 02:55:19 +0000 Subject: [PATCH] Update Core.cs --- CLI/HttpService/Core.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CLI/HttpService/Core.cs b/CLI/HttpService/Core.cs index 5f85688..85257c1 100644 --- a/CLI/HttpService/Core.cs +++ b/CLI/HttpService/Core.cs @@ -299,6 +299,8 @@ namespace BetterSecondBot.HttpService [About("Makes a request to the core commands lib
See LSL example on how to create a core command auth code")] [ArgHints("Request Body", "JsonObject", "Command: string
Args: string[]
AuthCode: string")] [ReturnHints("accepted")] + [ReturnHints("Auth not accepted")] + [ReturnHints("Failed")] [Route(HttpVerbs.Post, "/command/{token}")] public async Task command(string token) { @@ -315,7 +317,9 @@ namespace BetterSecondBot.HttpService { return BasicReply("accepted"); } + return BasicReply("Failed"); } + return BasicReply("Auth not accepted"); } return BasicReply("Token not accepted"); }