// NewReference returns a new reference REST handler.
NewReference returns a new reference REST handler.
// NewReference returns a new reference REST handler .
func NewReference(path string, refType spi.ReferenceType, sortOrder spi.SortOrder, ordered bool,
	cfg *Config, activityStore spi.Store, getObjectIRI getObjectIRIFunc, getID getIDFunc,
	verifier signatureVerifier, tm authTokenManager) *Reference {
	h := &Reference{
		refType:              refType,
		createCollection:     createCollection(ordered),
		createCollectionPage: createCollectionPage(ordered),
		getID:                getID,
		getObjectIRI:         getObjectIRI,
	}
	h.handler = newHandler(path, cfg, activityStore, h.handle, verifier, sortOrder, tm)
	return h
}
func NewReference ( path string , refType spi . ReferenceType , sortOrder spi . SortOrder , ordered bool , cfg * Config , activityStore spi . Store , getObjectIRI getObjectIRIFunc , getID getIDFunc , verifier signatureVerifier , tm authTokenManager ) * Reference { h := & Reference { refType : refType , createCollection : createCollection ( ordered ) , createCollectionPage : createCollectionPage ( ordered ) , getID : getID , getObjectIRI : getObjectIRI , } h . handler = newHandler ( path , cfg , activityStore , h . handle , verifier , sortOrder , tm ) return h }
NewReference returns a new reference REST handler.
NewReference returns a new reference REST handler .