mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-10-26 11:27:18 +00:00
home: imp code
This commit is contained in:
parent
eaf322f336
commit
6295f8fb9c
@ -264,8 +264,8 @@ func (web *webAPI) handleLogout(w http.ResponseWriter, r *http.Request) {
|
||||
w.WriteHeader(http.StatusFound)
|
||||
}
|
||||
|
||||
// RegisterAuthHandlers registers authentication handlers. web must not be nil.
|
||||
func RegisterAuthHandlers(web *webAPI) {
|
||||
// registerAuthHandlers registers authentication handlers. web must not be nil.
|
||||
func registerAuthHandlers(web *webAPI) {
|
||||
web.conf.mux.Handle(
|
||||
"/control/login",
|
||||
web.postInstallHandler(ensure(http.MethodPost, web.handleLogin)),
|
||||
|
||||
@ -196,7 +196,7 @@ func registerControlHandlers(web *webAPI) {
|
||||
"/apple/dot.mobileconfig",
|
||||
web.postInstallHandler(http.HandlerFunc(handleMobileConfigDoT)),
|
||||
)
|
||||
RegisterAuthHandlers(web)
|
||||
registerAuthHandlers(web)
|
||||
}
|
||||
|
||||
// httpRegister registers an HTTP handler.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user