19 lines
No EOL
336 B
Text
19 lines
No EOL
336 B
Text
module namespace wsa = 'app/sockets';
|
|
import module namespace ws="http://basex.org/modules/ws";
|
|
|
|
|
|
declare function wsa:wsids()
|
|
as xs:string*
|
|
{
|
|
ws:ids()
|
|
};
|
|
|
|
declare %rest:path('/app/api/sockets')
|
|
function wsa:list()
|
|
as element(ul)
|
|
{
|
|
<ul>{
|
|
wsa:wsids()!<li><a href="/app/sockets/{.}">{.}</a></li>
|
|
}</ul>
|
|
|
|
}; |