10 lines
250 B
Go
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)
|
|
})
|
|
}
|