func (h *Retrieve) Path() string {
	return h.BasePath + "/{resourceName}"
}
Path returns the context path
package filehandler
import (
	"bytes"
	"encoding/json"
	"net/http"
	"strings"
	"github.com/gorilla/mux"
	"github.com/hyperledger/fabric/common/flogging"
	"github.com/pkg/errors"
	dcas "github.com/trustbloc/fabric-peer-ext/pkg/collections/offledger/dcas/client"
	"github.com/trustbloc/sidetree-core-go/pkg/document"
	"github.com/trustbloc/sidetree-core-go/pkg/restapi/common"
)
var logger = flogging.MustGetLogger("sidetree_peer")
const (
	serverError  = "server error"
	fileNotFound = "file not found"
)
type documentResolver interface {
	ResolveDocument(idOrDocument string) (*document.ResolutionResult, error)
}
type Retrieve struct {
	Config
	channelID    string
	resolver     documentResolver
	dcasProvider dcasClientProvider
}
type dcasClientProvider interface {
	GetDCASClient(channelID, namespace, coll string) (dcas.DCAS, error)
}
func NewRetrieveHandler(channelID string, cfg Config, resolver documentResolver, dcasProvider dcasClientProvider) *Retrieve {
	return &Retrieve{
		Config:       cfg,
		resolver:     resolver,
		dcasProvider: dcasProvider,
		channelID:    channelID,
	}
}