func New(prefix string, storage storage.Service) http.Handler {
	mux := http.NewServeMux()
	h := handler{prefix, storage}
	mux.HandleFunc("/encode/", responseHandler(h.encode))
	mux.HandleFunc("/", h.redirect)
	mux.HandleFunc("/info/", responseHandler(h.decode))
	return mux
}
New returns an http handler for the url shortener.
package handler
import (
	"encoding/json"
	"fmt"
	"io"
	"log"
	"net/http"
	"strings"
	"github.com/douglasmakey/ursho/storage"
)