mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-10 02:43:37 +02:00
simplify icon caching and homepage item override
This commit is contained in:
@@ -47,6 +47,10 @@ func NewHandler(cfg config.ConfigInstance) http.Handler {
|
||||
})
|
||||
mux.HandleFunc("GET,POST", "/v1/auth/callback", defaultAuth.LoginCallbackHandler)
|
||||
mux.HandleFunc("GET,POST", "/v1/auth/logout", auth.LogoutCallbackHandler(defaultAuth))
|
||||
} else {
|
||||
mux.HandleFunc("GET", "/v1/auth/check", func(w http.ResponseWriter, r *http.Request) {
|
||||
w.WriteHeader(http.StatusOK)
|
||||
})
|
||||
}
|
||||
return mux
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user