Skip to content

Commit 571b7a5

Browse files
authored
Merge pull request #1185 from MarechJ/feat/message-all-endpoint
API: expose message_all_players
2 parents 01ff19d + 1c8f8c0 commit 571b7a5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rconweb/api/views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ def run_raw_command(request):
395395

396396

397397
ENDPOINT_PERMISSIONS: dict[Callable, list[str] | set[str] | str] = {
398+
rcon_api.message_all_players: "api.can_message_players",
398399
rcon_api.disband_squad: "api.can_disband_squad",
399400
rcon_api.disband_squad_by_name: "api.can_disband_squad",
400401
rcon_api.remove_player_from_squad: "api.can_remove_player_from_squad",
@@ -681,6 +682,7 @@ def run_raw_command(request):
681682
)
682683

683684
RCON_ENDPOINT_HTTP_METHODS: dict[Callable, list[str]] = {
685+
rcon_api.message_all_players: ["POST"],
684686
rcon_api.disband_squad: ["POST"],
685687
rcon_api.disband_squad_by_name: ["POST"],
686688
rcon_api.remove_player_from_squad: ["POST"],

0 commit comments

Comments
 (0)