From 8f5222c946d86e20495955bd154454d6e61f46ec Mon Sep 17 00:00:00 2001 From: zznty <94796179+zznty@users.noreply.github.com> Date: Sun, 26 Mar 2023 13:30:25 +0700 Subject: [PATCH] fix get banned path --- TorchRemote.Plugin/Controllers/PlayersController.cs | 2 +- TorchRemote.Plugin/manifest.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TorchRemote.Plugin/Controllers/PlayersController.cs b/TorchRemote.Plugin/Controllers/PlayersController.cs index adae552..e424066 100644 --- a/TorchRemote.Plugin/Controllers/PlayersController.cs +++ b/TorchRemote.Plugin/Controllers/PlayersController.cs @@ -40,7 +40,7 @@ public class PlayersController : WebApiController Statics.MultiplayerManager!.BanPlayer(id, false); } - [Route(HttpVerbs.Get, $"{RootPath}/{{id}}/banned")] + [Route(HttpVerbs.Get, $"{RootPath}/banned")] public IEnumerable Banned() { return MySandboxGame.ConfigDedicated.Banned; diff --git a/TorchRemote.Plugin/manifest.xml b/TorchRemote.Plugin/manifest.xml index 099fa0d..92aa12b 100644 --- a/TorchRemote.Plugin/manifest.xml +++ b/TorchRemote.Plugin/manifest.xml @@ -2,5 +2,5 @@ Torch Remote 284017F3-9682-4841-A544-EB04DB8CB9BA - v1.0.10 + v1.0.11 \ No newline at end of file