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