You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
473 B
Go
21 lines
473 B
Go
package internal
|
|
|
|
import (
|
|
"log/slog"
|
|
"net/http"
|
|
)
|
|
|
|
func addRoutes(mux *http.ServeMux,
|
|
logger *slog.Logger,
|
|
config *Config,
|
|
//tenantStore *TenantStore
|
|
|
|
) http.Handler {
|
|
// mux.Handle("/api/v1/", handleTenantsGet(logger, tenantsStore))
|
|
// mux.Handle("/oauth2/", handleOAuth2Proxy(logger, authProxy))
|
|
mux.Handle("/something", handleSomething(logger, config))
|
|
mux.Handle("/healthz", handleHealthzPlease(logger))
|
|
mux.Handle("/", http.NotFoundHandler())
|
|
return mux
|
|
}
|