The path (or, with { absolute: true }, the public URL) of a route under MJAPI's base path.
subpath is relative to the base path and must start with /.
ApiRoute('/media') → /media at base /, /api/media at MJAPI_BASE_PATH=/api.
ApiRoute('/media/abc', { absolute: true }) → ${MJAPI_PUBLIC_URL}/media/abc. MJAPI_PUBLIC_URL is
wherever the world reaches MJAPI (prefix included), so the base path is never added to it. Without it,
the local fallback is baseUrl:graphqlPort + the base path.
The path (or, with
{ absolute: true }, the public URL) of a route under MJAPI's base path.subpathis relative to the base path and must start with/.ApiRoute('/media')→/mediaat base/,/api/mediaatMJAPI_BASE_PATH=/api.ApiRoute('/media/abc', { absolute: true })→${MJAPI_PUBLIC_URL}/media/abc.MJAPI_PUBLIC_URLis wherever the world reaches MJAPI (prefix included), so the base path is never added to it. Without it, the local fallback isbaseUrl:graphqlPort+ the base path.