move api/server to api/edge/bff
This commit is contained in:
13
api/edge/bff/internal/server/invitationimp/response.go
Normal file
13
api/edge/bff/internal/server/invitationimp/response.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package invitationimp
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/tech/sendico/pkg/api/http/response"
|
||||
mutil "github.com/tech/sendico/server/internal/mutil/param"
|
||||
)
|
||||
|
||||
func (a *InvitationAPI) respondBadReference(r *http.Request, err error) http.HandlerFunc {
|
||||
a.Logger.Warn("Failed to fetch invitation reference", mutil.PLog(a.irh, r))
|
||||
return response.BadReference(a.Logger, a.Name(), a.irh.Name(), a.irh.GetID(r), err)
|
||||
}
|
||||
Reference in New Issue
Block a user