Pull request 1717: remove-client2
Merge in DNS/adguard-home from remove-client2 to master Squashed commit of the following: commit 0a0923494b0d1003e4f02f3a5f93d5248f0f2ded Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Fri Jan 20 17:14:29 2023 +0300 all: rm old experimental beta (dir client2/) This project was unfortunately abandoned. v0.108.0 will have a different front-end and new APIs.
This commit is contained in:
@@ -75,18 +75,3 @@ func limitRequestBody(h http.Handler) (limited http.Handler) {
|
||||
h.ServeHTTP(w, rr)
|
||||
})
|
||||
}
|
||||
|
||||
// wrapIndexBeta returns handler that deals with new client.
|
||||
func (web *Web) wrapIndexBeta(http.Handler) (wrapped http.Handler) {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
h, pattern := Context.mux.Handler(r)
|
||||
switch pattern {
|
||||
case "/":
|
||||
web.handlerBeta.ServeHTTP(w, r)
|
||||
case "/install.html":
|
||||
web.installerBeta.ServeHTTP(w, r)
|
||||
default:
|
||||
h.ServeHTTP(w, r)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user