{{ define "admin-webhooks-content" }} {{ template "nav-sidebar" . }}
{{ template "navbar-user" . }}

Webhooks

Push notifications to external systems as events occur on Spokes. These events include Tunnels coming online/offline, admin logins and other events. Webhooks make it simple to create event-driven integrations with Spokes and its API with third-party applications.

{{ if eq (len .Endpoints) 0 }} {{ end }} {{ range $endpoint := .Endpoints }} {{ end }}
Name URL Active Authentication Delay Updated

No Webhooks

{{ $endpoint.Name }} {{ $endpoint.URL }} {{ if $endpoint.Active }}
{{ else }} {{ end }}
{{ if eq $endpoint.Authentication 0 }} None {{ end }} {{ if eq $endpoint.Authentication 1 }} Username:
{{ $endpoint.BasicAuthUser }}

Password:
{{ $endpoint.BasicAuthPass }} {{ end }} {{ if eq $endpoint.Authentication 2 }} {{ $endpoint.KeySnippet }}... {{ $endpoint.Key }}
Copy {{ end }}
{{ $endpoint.Delay }}s {{ $endpoint.Modified.Format "15:04" }}
{{ $endpoint.Modified.Format "Jan 2, 2006" }}
{{ template "menu-toggle" . }}
{{ template "admin-webhook-delete-dialog" . }} {{ end }} {{ define "admin-webhook-delete-dialog" }} {{ end }} {{ define "admin-webhook-edit-content" }} {{ template "nav-sidebar" . }}
{{ template "navbar-user" . }}

{{ if .Endpoint }}Edit Webhook{{ else }}Create Webhook{{ end }}

{{ if .Endpoint }}{{ end }} {{ if len (.Error "name") }}
{{ .Error "name" }}
{{ end }}

{{ if len (.Error "endpointURL") }}
{{ .Error "endpointURL" }}
{{ end }}

{{ if len (.Error "basicUser") }}
{{ .Error "basicUser" }}
{{ end }} {{ if len (.Error "basicPass") }}
{{ .Error "basicPass" }}
{{ end }} {{ if len (.Error "hmacKey") }}
{{ .Error "hmacKey" }}
{{ end }}

{{ if len (.Error "delay") }}
{{ .Error "delay" }}
{{ end }}

{{ template "event-notifications" . }}
{{ template "menu-toggle" . }}
{{ template "admin-token-delete-dialog" . }} {{ end }} {{ define "event-notifications" }}


{{ end }}