s3manager-web/views/index-handler.go

11 lines
250 B
Go
Raw Normal View History

2017-03-30 22:48:27 +02:00
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)
})
}