message history for dm
This commit is contained in:
@@ -82,6 +82,8 @@
|
||||
<button onclick="showForm('get-connections')">POST /get/connections</button>
|
||||
<button onclick="showForm('get-members')">POST /get/group/members</button>
|
||||
<button onclick="showForm('del-group')" class="warn">POST /del/group</button>
|
||||
<button onclick="showForm('del-connection')" class="warn">POST /del/connection</button>
|
||||
<button onclick="showForm('get-connection-messages')">POST /get/connection/messages</button>
|
||||
<button onclick="showForm('msg-user')">POST /msg/user</button>
|
||||
<button onclick="showForm('msg-group')">POST /msg/group</button>
|
||||
<button onclick="showForm('websocket')">WS /ws</button>
|
||||
@@ -236,6 +238,24 @@
|
||||
],
|
||||
submit: () => httpPost('/del/group', { token:'dg-token', groupid:'dg-groupid' })
|
||||
},
|
||||
'del-connection': {
|
||||
title: 'POST /del/connection — delete a connection',
|
||||
fields: [
|
||||
{ id: 'dc-token', label: 'token', ph: '' },
|
||||
{ id: 'dc-connectionid', label: 'connectionid', ph: 'UUID' },
|
||||
],
|
||||
submit: () => httpPost('/del/connection', { token:'dc-token', connectionid:'dc-connectionid' })
|
||||
},
|
||||
'get-connection-messages': {
|
||||
title: 'POST /get/connection/messages — fetch message history',
|
||||
fields: [
|
||||
{ id: 'gcm-token', label: 'token', ph: '' },
|
||||
{ id: 'gcm-connectionid', label: 'connectionid', ph: 'UUID' },
|
||||
{ id: 'gcm-messages', label: 'messages', ph: 'count (optional)' },
|
||||
{ id: 'gcm-before', label: 'before', ph: 'RFC3339 (optional)', hint: 'e.g. 2025-01-01T00:00:00Z' },
|
||||
],
|
||||
submit: () => httpPost('/get/connection/messages', { token:'gcm-token', connectionid:'gcm-connectionid', messages:'gcm-messages', before:'gcm-before' })
|
||||
},
|
||||
'msg-user': {
|
||||
title: 'POST /msg/user — send direct message to user',
|
||||
fields: [
|
||||
|
||||
Reference in New Issue
Block a user