s3manager-web/index-view.go
2017-04-03 23:52:41 +02:00

10 lines
257 B
Go

package main
import "net/http"
// IndexViewHandler forwards to "/buckets"
func IndexViewHandler() http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
http.Redirect(w, r, "/buckets", http.StatusPermanentRedirect)
})
}