Skip to content

Commit

Permalink
Rename server_list endpoint get_server_list
Browse files Browse the repository at this point in the history
  • Loading branch information
cemathey committed May 21, 2024
1 parent f099fe2 commit 2728724
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rcongui/src/components/Header/serverStatus.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ class ServerStatus extends React.Component {
}

async loadServerList() {
return get(`server_list`)
.then((response) => showResponse(response, "server_list", false))
return get(`get_server_list`)
.then((response) => showResponse(response, "get_server_list", false))
.then((data) => {
this.setState({
serverList: fromJS(data.result || []),
Expand Down
2 changes: 1 addition & 1 deletion rconweb/api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def get_api_documentation(request):
("get_own_user_permissions", auth.get_own_user_permissions),
("get_services", services.get_services),
("do_service", services.do_service),
("server_list", multi_servers.get_server_list),
("get_server_list", multi_servers.get_server_list),
("upload_vips", vips.upload_vips),
("async_upload_vips", vips.async_upload_vips),
("async_upload_vips_result", vips.async_upload_vips_result),
Expand Down

0 comments on commit 2728724

Please sign in to comment.