mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-08 20:07:51 +00:00
Unexport http.NewRouter
This commit is contained in:
parent
e460a58bfa
commit
ab26a1be4b
1 changed files with 3 additions and 3 deletions
|
|
@ -114,7 +114,7 @@ func NewHandler(opts ...handlerOption) (*Handler, error) {
|
|||
handler := &Handler{
|
||||
logger: pilosa.NopLogger,
|
||||
}
|
||||
handler.Handler = NewRouter(handler)
|
||||
handler.Handler = newRouter(handler)
|
||||
handler.populateValidators()
|
||||
|
||||
for _, opt := range opts {
|
||||
|
|
@ -183,8 +183,8 @@ func (h *Handler) queryArgValidator(next http.Handler) http.Handler {
|
|||
})
|
||||
}
|
||||
|
||||
// NewRouter creates a new mux http router.
|
||||
func NewRouter(handler *Handler) *mux.Router {
|
||||
// newRouter creates a new mux http router.
|
||||
func newRouter(handler *Handler) *mux.Router {
|
||||
router := mux.NewRouter()
|
||||
router.HandleFunc("/", handler.handleHome).Methods("GET")
|
||||
router.HandleFunc("/cluster/resize/abort", handler.handlePostClusterResizeAbort).Methods("POST")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue