mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Create Webhook interface
This commit is contained in:
parent
b7bb5a258b
commit
0eeb005c14
1 changed files with 11 additions and 1 deletions
|
|
@ -12,7 +12,17 @@ import { ConfirmationModal } from '../../components/patterns/ConfirmationModal'
|
|||
import { deleteWebhookMutation } from '../../lib/networking/mutations/deleteWebhookMutation'
|
||||
import { FormInputProps, FormModal } from '../../components/patterns/FormModal'
|
||||
import { setWebhookMutation } from '../../lib/networking/mutations/setWebhookMutation'
|
||||
import { useGetWebhookQuery } from '../../lib/networking/queries/useGetWebhookQuery'
|
||||
|
||||
interface Webhook {
|
||||
id?: string
|
||||
url: string
|
||||
eventTypes: string
|
||||
contentType?: string
|
||||
method?: string
|
||||
enabled: string
|
||||
createdAt?: Date
|
||||
updatedAt?: Date
|
||||
}
|
||||
|
||||
export default function Webhooks(): JSX.Element {
|
||||
const { webhooks, revalidate } = useGetWebhooksQuery()
|
||||
|
|
|
|||
Loading…
Reference in a new issue