s3manager-web/views/index-handler.go
2017-03-30 22:48:27 +02:00

10 lines
250 B
Go

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