home: imp code

This commit is contained in:
Stanislav Chzhen 2025-09-25 15:27:37 +03:00
parent eaf322f336
commit 6295f8fb9c
2 changed files with 3 additions and 3 deletions

View File

@ -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)),

View File

@ -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.