2017-04-03 14:08:01 +02:00
|
|
|
package main
|
2017-03-30 22:48:27 +02:00
|
|
|
|
|
|
|
import "net/http"
|
|
|
|
|
|
|
|
// IndexHandler 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)
|
|
|
|
})
|
|
|
|
}
|