package siteimp

import (
	"net/http"

	"github.com/tech/sendico/pkg/api/http/response"
)

type enqueueResponse struct {
	Status string `json:"status"`
}

func newEnqueueResponse() enqueueResponse {
	return enqueueResponse{Status: "queued"}
}

func (a *SiteAPI) acceptedQueued() http.HandlerFunc {
	return response.Accepted(a.logger, newEnqueueResponse())
}
