* dnsforward: move access settings and web handlers

This commit is contained in:
Simon Zolin
2019-10-30 15:11:16 +03:00
parent 7bb32eae3d
commit 19a1c03d3b
5 changed files with 197 additions and 173 deletions

View File

@@ -283,4 +283,8 @@ func (s *Server) registerHandlers() {
s.conf.HTTPRegister("POST", "/control/disable_protection", s.handleProtectionDisable)
s.conf.HTTPRegister("POST", "/control/set_upstreams_config", s.handleSetUpstreamConfig)
s.conf.HTTPRegister("POST", "/control/test_upstream_dns", s.handleTestUpstreamDNS)
s.conf.HTTPRegister("GET", "/control/access/list", s.handleAccessList)
s.conf.HTTPRegister("POST", "/control/access/set", s.handleAccessSet)
}