Pull request: all: use http method constants
Merge in DNS/adguard-home from method-const to master Squashed commit of the following: commit ae6d6699a25ca04ba92aa53258d46e50233a9e00 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Fri Jan 29 22:03:59 2021 +0300 all: use http method constants
This commit is contained in:
@@ -113,8 +113,8 @@ func (s *statsCtx) initWeb() {
|
||||
return
|
||||
}
|
||||
|
||||
s.conf.HTTPRegister("GET", "/control/stats", s.handleStats)
|
||||
s.conf.HTTPRegister("POST", "/control/stats_reset", s.handleStatsReset)
|
||||
s.conf.HTTPRegister("POST", "/control/stats_config", s.handleStatsConfig)
|
||||
s.conf.HTTPRegister("GET", "/control/stats_info", s.handleStatsInfo)
|
||||
s.conf.HTTPRegister(http.MethodGet, "/control/stats", s.handleStats)
|
||||
s.conf.HTTPRegister(http.MethodPost, "/control/stats_reset", s.handleStatsReset)
|
||||
s.conf.HTTPRegister(http.MethodPost, "/control/stats_config", s.handleStatsConfig)
|
||||
s.conf.HTTPRegister(http.MethodGet, "/control/stats_info", s.handleStatsInfo)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user