move api/server to api/edge/bff
This commit is contained in:
19
api/edge/bff/internal/server/siteimp/response.go
Normal file
19
api/edge/bff/internal/server/siteimp/response.go
Normal file
@@ -0,0 +1,19 @@
|
||||
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())
|
||||
}
|
||||
Reference in New Issue
Block a user