summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-squid
diff options
context:
space:
mode:
Diffstat (limited to 'applications/luci-app-squid')
-rw-r--r--applications/luci-app-squid/luasrc/controller/squid.lua21
-rw-r--r--applications/luci-app-squid/root/usr/share/luci/menu.d/luci-app-squid.json10
2 files changed, 10 insertions, 21 deletions
diff --git a/applications/luci-app-squid/luasrc/controller/squid.lua b/applications/luci-app-squid/luasrc/controller/squid.lua
deleted file mode 100644
index 09946a1511..0000000000
--- a/applications/luci-app-squid/luasrc/controller/squid.lua
+++ /dev/null
@@ -1,21 +0,0 @@
---[[
-
-LuCI Squid module
-
-Copyright (C) 2015, OpenWrt.org
-
-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
-
-Author: Marko Ratkaj <marko.ratkaj@sartura.hr>
-
-]]--
-
-module("luci.controller.squid", package.seeall)
-
-function index()
- entry({"admin", "services", "squid"}, cbi("squid"), _("Squid"))
-end
diff --git a/applications/luci-app-squid/root/usr/share/luci/menu.d/luci-app-squid.json b/applications/luci-app-squid/root/usr/share/luci/menu.d/luci-app-squid.json
new file mode 100644
index 0000000000..b71648b69c
--- /dev/null
+++ b/applications/luci-app-squid/root/usr/share/luci/menu.d/luci-app-squid.json
@@ -0,0 +1,10 @@
+{
+ "admin/services/squid": {
+ "title": "Squid",
+ "action": {
+ "type": "cbi",
+ "path": "squid",
+ "post": { "cbi.submit": true }
+ }
+ }
+}