summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-mosquitto
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-mosquitto')
-rw-r--r--applications/luci-app-mosquitto/luasrc/controller/mosquitto.lua16
-rw-r--r--applications/luci-app-mosquitto/root/usr/share/luci/menu.d/luci-app-mosquitto.json10
2 files changed, 10 insertions, 16 deletions
diff --git a/applications/luci-app-mosquitto/luasrc/controller/mosquitto.lua b/applications/luci-app-mosquitto/luasrc/controller/mosquitto.lua
deleted file mode 100644
index 587054eb10..0000000000
--- a/applications/luci-app-mosquitto/luasrc/controller/mosquitto.lua
+++ /dev/null
@@ -1,16 +0,0 @@
---[[
-LuCI - Lua Configuration Interface for mosquitto
-
-Licensed under the Apache License, Version 2.0 (the "License");
-you may not use this file except in compliance with the License.
-You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
-]]--
-
-module("luci.controller.mosquitto", package.seeall)
-
-function index()
- entry({"admin", "services", "mosquitto"}, cbi("mosquitto"), _("Mosquitto"))
-end
diff --git a/applications/luci-app-mosquitto/root/usr/share/luci/menu.d/luci-app-mosquitto.json b/applications/luci-app-mosquitto/root/usr/share/luci/menu.d/luci-app-mosquitto.json
new file mode 100644
index 0000000000..37870b3790
--- /dev/null
+++ b/applications/luci-app-mosquitto/root/usr/share/luci/menu.d/luci-app-mosquitto.json
@@ -0,0 +1,10 @@
+{
+ "admin/services/mosquitto": {
+ "title": "Mosquitto",
+ "action": {
+ "type": "cbi",
+ "path": "mosquitto",
+ "post": { "cbi.submit": true }
+ }
+ }
+}