s3manager-web/index-view.go

11 lines
257 B
Go
Raw Normal View History

2017-04-03 14:08:01 +02:00
package main
2017-03-30 22:48:27 +02:00
import "net/http"
2017-04-03 23:52:41 +02:00
// IndexViewHandler forwards to "/buckets"
2017-04-03 14:08:01 +02:00
func IndexViewHandler() http.Handler {
2017-03-30 22:48:27 +02:00
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
http.Redirect(w, r, "/buckets", http.StatusPermanentRedirect)
})
}