fix getting unread messages, ws endpoint
This commit is contained in:
@@ -76,6 +76,7 @@
|
||||
<button data-form="mod-connection-deelevate" onclick="showForm('mod-connection-deelevate')">POST /connection/deelevate</button>
|
||||
<button data-form="get-user" onclick="showForm('get-user')">GET /user</button>
|
||||
<button data-form="get-connections" onclick="showForm('get-connections')">GET /connections</button>
|
||||
<button data-form="get-connections-unread" onclick="showForm('get-connections-unread')">GET /connections/unreadmessages</button>
|
||||
<button data-form="get-connection-messages" onclick="showForm('get-connection-messages')">GET /connection/messages</button>
|
||||
<button data-form="file-download" onclick="showForm('file-download')">GET /file</button>
|
||||
<button data-form="get-user-avatar" onclick="showForm('get-user-avatar')">GET /user/avatar</button>
|
||||
@@ -168,6 +169,13 @@
|
||||
<div class="form-actions"><button class="send" onclick="submit('get-connections')">Send</button></div>
|
||||
</div>
|
||||
|
||||
<!-- GET /connections/unreadmessages -->
|
||||
<div class="form-content" id="fc-get-connections-unread">
|
||||
<div class="field"><label>token</label><input id="gcur-token" placeholder=""></div>
|
||||
<div class="field"><label>connections</label><input id="gcur-connections" placeholder="UUID,UUID,..."></div>
|
||||
<div class="form-actions"><button class="send" onclick="submit('get-connections-unread')">Send</button></div>
|
||||
</div>
|
||||
|
||||
<!-- GET /connection/messages -->
|
||||
<div class="form-content" id="fc-get-connection-messages">
|
||||
<div class="field"><label>token</label><input id="gcm-token" placeholder=""></div>
|
||||
@@ -255,6 +263,7 @@
|
||||
'mod-connection-deelevate':{ method:'POST', path:'/connection/deelevate', title:'POST /connection/deelevate — de-elevate', fields:[{id:'mcde-token',dest:'header',name:'token'},{id:'mcde-connectionid',dest:'body',name:'connectionid'}] },
|
||||
'get-user': { method:'GET', path:'/user', title:'GET /user — get user info', fields:[{id:'gu-token',dest:'header',name:'token'},{id:'gu-targetid',dest:'query',name:'targetid'}] },
|
||||
'get-connections': { method:'GET', path:'/connections', title:'GET /connections — get connections', fields:[{id:'gconn-token',dest:'header',name:'token'}] },
|
||||
'get-connections-unread': { method:'GET', path:'/connections/unreadmessages', title:'GET /connections/unreadmessages — unread counts for given connections (returns []uint32 in same order)', fields:[{id:'gcur-token',dest:'header',name:'token'},{id:'gcur-connections',dest:'query',name:'connections'}] },
|
||||
'get-connection-messages': { method:'GET', path:'/connection/messages', title:'GET /connection/messages — message history', fields:[{id:'gcm-token',dest:'header',name:'token'},{id:'gcm-connectionid',dest:'query',name:'connectionid'},{id:'gcm-messages',dest:'query',name:'messages'},{id:'gcm-before',dest:'query',name:'before'}] },
|
||||
'del-user': { method:'DELETE', path:'/user', title:'DELETE /user — delete own account', fields:[{id:'du-token',dest:'header',name:'token'}] },
|
||||
'del-connection': { method:'DELETE', path:'/connection', title:'DELETE /connection — delete a connection', fields:[{id:'dc-token',dest:'header',name:'token'},{id:'dc-connectionid',dest:'query',name:'connectionid'}] },
|
||||
|
||||
Reference in New Issue
Block a user