Remove vestigial getServicesBy* methods (#952)

* Remove vestigial getServicesBy* methods

getServicesByNode is only a dummy method.
getServicesByService doesn't even exist.

Remove the last remaining references to them from cgi-bin/api, and remove the last traces of getServicesByNode from aredn/olsr.lua

Fixes #948
Fixes #949

* Bump API version

Breaking change, removing parameters services=bynode,byservice
This commit is contained in:
Brett T. Warden 2023-09-29 20:09:16 -07:00 committed by GitHub
parent 84ea30184c
commit a2e9e3054c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 9 deletions

View File

@ -154,8 +154,4 @@ function model.getCurrentNeighbors(RFinfo)
return info
end
function model.getServicesByNode(node)
return {}
end
return model

View File

@ -46,7 +46,7 @@ local json = require("luci.jsonc")
require("iwinfo")
local nettools = require("aredn.nettools")
local API_VERSION="1.5"
local API_VERSION="1.6"
-- Function extensions
os.capture = capture
@ -426,10 +426,6 @@ for page, comps in pairs(qsset) do
for i,comp in pairs(comps:split(',')) do
if comp=="sysinfo" then
info['pages'][page][comp]=getSysinfo()
elseif comp=="bynode" then
info['pages'][page][comp]=getServicesByNode()
elseif comp=="byservice" then
info['pages'][page][comp]=getServicesByService()
end
end
elseif page=="chart" then