X-Git-Url: http://git.squeep.com/?p=websub-hub;a=blobdiff_plain;f=src%2Ftemplate%2Froot-html.js;h=8797564e54e93b1ef816de4c4e4b6e01269e3b7c;hp=c68d52a33313810d581029eb2fabf456429a4a54;hb=f10a4ea1e43a9a37306f35677d4d6c7ccb98e894;hpb=085b55f507dedc16016bb491d520c556acd60643 diff --git a/src/template/root-html.js b/src/template/root-html.js index c68d52a..8797564 100644 --- a/src/template/root-html.js +++ b/src/template/root-html.js @@ -46,6 +46,15 @@ function usageSection(isPublicHub, hubURL) { +
  • + Ideally, these should be combined in one header. +
    +
    Example:
    + + Link: <${hubURL}>; rel="hub", <https://example.com/feed/>; rel="self" + +
    +
  • @@ -73,15 +82,21 @@ function usageSection(isPublicHub, hubURL) {

    Publishing Updates

    - Send a POST request to this hub with Form Data: + To notify the Hub that a topic's content has been updated and should be distributed to subscribers, send a POST request with Form Data (application/x-www-form-urlencoded): +
    +
    Example:
    + + curl ${hubURL} -d'hub.mode=publish' -d'hub.url=https://example.com/blog_one/feed' -d'hub.url=https://example.com/blog_two/feed' + +
    ` : `

    Private Hub