Setting up initial cli options and http handlers

This commit is contained in:
Frederick F. Kautz IV
2014-11-02 18:56:33 -05:00
parent d02e148236
commit fc6a2a45cb
7 changed files with 119 additions and 25 deletions
+15
View File
@@ -0,0 +1,15 @@
package minio
import (
"fmt"
"github.com/gorilla/mux"
"net/http"
)
func GatewayHandler(w http.ResponseWriter, req *http.Request) {
fmt.Fprintf(w, "Gateway")
}
func RegisterGatewayHandlers(router *mux.Router) {
router.HandleFunc("/gateway/rpc", GatewayHandler)
}