package micropub
import (
"net/http"
"hawx.me/code/mux"
)
type Publisher func(data map[string][]interface{}) (location string, err error)
func Endpoint(me string, publisher Publisher) http.Handler {
return authenticate(me, "create", mux.Method{
"POST": postHandler(publisher),
})
}