Minor refactoring, moving http request logic from storage to server

This commit is contained in:
Frederick F. Kautz IV
2015-01-18 15:50:53 -08:00
parent 4e644a1f41
commit d3d1c1afb3
2 changed files with 16 additions and 19 deletions

View File

@@ -1,22 +1,6 @@
package storage
import (
"errors"
"io"
"net/http"
"github.com/gorilla/mux"
)
func GetHttpHandler() http.Handler {
mux := mux.NewRouter()
mux.HandleFunc("/", storageHandler)
return mux
}
func storageHandler(w http.ResponseWriter, req *http.Request) {
io.WriteString(w, "MINIO")
}
import "errors"
func Start() (chan<- string, <-chan error) {
ctrlChannel := make(chan string)