mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-01 01:25:45 -04:00
24 lines
986 B
Vue
24 lines
986 B
Vue
|
<template>
|
||
|
<div class="mb-3">
|
||
|
<label for="webhook-url" class="form-label">Post URL</label>
|
||
|
<input id="webhook-url" v-model="$parent.notification.webhookURL" type="url" pattern="https?://.+" class="form-control" required>
|
||
|
</div>
|
||
|
|
||
|
<div class="mb-3">
|
||
|
<label for="webhook-content-type" class="form-label">Content Type</label>
|
||
|
<select id="webhook-content-type" v-model="$parent.notification.webhookContentType" class="form-select" required>
|
||
|
<option value="json">
|
||
|
application/json
|
||
|
</option>
|
||
|
<option value="form-data">
|
||
|
multipart/form-data
|
||
|
</option>
|
||
|
</select>
|
||
|
|
||
|
<div class="form-text">
|
||
|
<p>"application/json" is good for any modern http servers such as express.js</p>
|
||
|
<p>"multipart/form-data" is good for PHP, you just need to parse the json by <strong>json_decode($_POST['data'])</strong></p>
|
||
|
</div>
|
||
|
</div>
|
||
|
</template>
|