yacy_search_server/htroot/yacy/seedlist.xml
Michael Peter Christen b93ea4e2a6 Added the option to retrieve only the own seed or a seleceted seed
(selected by peer-hash) in the /yacy/seedlist.[json/xml] api.
Added also a xml-version of the servlet.
The own seed can be retrieved i.e. with
http://localhost:8090/yacy/seedlist.xml?my=
http://localhost:8090/yacy/seedlist.json?my=
and any other peer can be selected with
http://localhost:8090/yacy/seedlist.xml?id=<peerhash>
http://localhost:8090/yacy/seedlist.json?id=<peerhash>
2014-09-13 11:02:11 +02:00

10 lines
120 B
XML

<?xml version="1.0"?>
<peers>
#{peers}#
<seed>
#{map}#
<#[k]#>#[v]#</#[k]#>
#{/map}#
</seed>
#{/peers}#
</peers>