func NewOutbox(cfg *Config, activityStore spi.Store, verifier signatureVerifier) *ReadOutbox {
	h := &ReadOutbox{
		Activities: &Activities{
			getID:        getID("outbox"),
			getObjectIRI: getObjectIRI(cfg.ObjectIRI),
		},
	}
	h.Activities.handler = newHandler(OutboxPath, cfg, activityStore, h.handleOutbox, verifier)
	return h
}
NewOutbox returns a new 'outbox' REST handler that retrieves a service's outbox.
package resthandler
import (
	"errors"
	"fmt"
	"net/http"
	"net/url"
	"github.com/trustbloc/orb/pkg/activitypub/store/spi"
	"github.com/trustbloc/orb/pkg/activitypub/store/storeutil"
	"github.com/trustbloc/orb/pkg/activitypub/vocab"
	orberrors "github.com/trustbloc/orb/pkg/errors"
)
func NewActivity(cfg *Config, activityStore spi.Store, verifier signatureVerifier) *Activity {
	h := &Activity{}
	h.handler = newHandler(ActivitiesPath, cfg, activityStore, h.handle, verifier)
	return h
}