mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 04:00:25 +03:00
Setting up initial cli options and http handlers
This commit is contained in:
+15
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user