luci-app-adblock: User interface for the 'adblock' package
[project/luci.git] / applications / luci-app-adblock / luasrc / controller / adblock.lua
1 -- Copyright 2016 Openwrt.org
2 -- Licensed to the public under the Apache License 2.0.
3
4 module("luci.controller.adblock", package.seeall)
5
6 function index()
7 if not nixio.fs.access("/etc/config/adblock") then
8 return
9 end
10
11 entry({"admin", "services", "adblock"}, cbi("adblock"), _("Adblock"), 40)
12 end