saleor-apps-redis_apl/apps/emails-and-messages/src/modules/sendgrid/urls.ts
Krzysztof Wolski 14ac6144c0
Update the sendgrid support (#321)
* Update the sendgrid support

* Add changeset
2023-03-24 15:33:48 +01:00

8 lines
330 B
TypeScript

import { MessageEventTypes } from "../event-handlers/message-event-types";
export const sendgridUrls = {
configuration: (id?: string) =>
!id ? "/configuration/sendgrid" : `/configuration/sendgrid/${id}`,
eventConfiguration: (id: string, event: MessageEventTypes) =>
`/configuration/sendgrid/${id}/event/${event}`,
};