luci-base: dispatcher.lua: refactor dispatch logic
authorJo-Philipp Wich <jo@mein.io>
Wed, 4 Dec 2019 18:19:45 +0000 (19:19 +0100)
committerJo-Philipp Wich <jo@mein.io>
Thu, 7 May 2020 17:40:49 +0000 (19:40 +0200)
commit4618dee2119b9f1c6b7b6e534f7d6c8e79e92b18
treed9d4206fbafa264eddc64cbcf7b9234f87278422
parent8059a49efcc92bf78e41e1cbb50c1f055f678520
luci-base: dispatcher.lua: refactor dispatch logic

Refactor the dispatch logic to operate on the internal JSON representation
of the menu tree.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 184ea6230076bf4dd3abf6669bde17f87a051146)
modules/luci-base/luasrc/dispatcher.lua