dvDocsAt function

String dvDocsAt(
  1. String base
)

The address of the document, for base.

A base with or without its trailing slash, so dvDocsBrowserSource(base: '/docs/') and base: '/docs' are the same site rather than a request for /docs/docs.json.

Implementation

String dvDocsAt(String base) {
  final String path = base.endsWith('/')
      ? base.substring(0, base.length - 1)
      : base;
  return '$path/$dvDocsPayloadFile';
}