Add support for managing IP-based bans. For https://github.com/owncast/owncast/issues/1534 (#434)

This commit is contained in:
Gabe Kangas
2022-03-06 20:39:36 -08:00
committed by GitHub
parent b97f805850
commit 301e149a67
3 changed files with 102 additions and 3 deletions

View File

@ -37,6 +37,12 @@ export const DISABLED_USERS = `${API_LOCATION}chat/users/disabled`;
// Disable/enable a single user
export const USER_ENABLED_TOGGLE = `${API_LOCATION}chat/users/setenabled`;
// Get banned IP addresses
export const BANNED_IPS = `${API_LOCATION}chat/users/ipbans`;
// Remove IP ban
export const BANNED_IP_REMOVE = `${API_LOCATION}chat/users/ipbans/remove`;
// Disable/enable a single user
export const USER_SET_MODERATOR = `${API_LOCATION}chat/users/setmoderator`;