mirror of
https://github.com/pgsty/minio.git
synced 2026-07-20 04:30:26 +03:00
Minor refactoring, moving http request logic from storage to server
This commit is contained in:
+1
-17
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user