mikser-io 9.26.0 → 9.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/plugins/api.js +14 -4
package/package.json
CHANGED
package/src/plugins/api.js
CHANGED
|
@@ -1062,10 +1062,20 @@ export function api(options = {}) {
|
|
|
1062
1062
|
// (allowRemote), so we keep the REMOTE OPEN warning in the
|
|
1063
1063
|
// log. streaming:true — the `subscribe` op holds an open SSE
|
|
1064
1064
|
// stream, so a facade must not buffer this route.
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1065
|
+
//
|
|
1066
|
+
// reachabilityOf rather than a local ternary: `auth` and `token`
|
|
1067
|
+
// both mean gated, and one helper decides for every plugin that
|
|
1068
|
+
// registers a route (ADR-0012) — webdav and mcp call it too. The
|
|
1069
|
+
// value is not just the log bracket: it lands on runtime.routes,
|
|
1070
|
+
// where 'loopback' tells a facade not to proxy, so reading it off
|
|
1071
|
+
// `token` alone hides an auth-gated endpoint from a generated
|
|
1072
|
+
// vhost while the boot log agrees that it is unreachable.
|
|
1073
|
+
const reachability = reachabilityOf(ep)
|
|
1074
|
+
const authLabel = ep.auth
|
|
1075
|
+
? (verifier?.name ?? 'auth')
|
|
1076
|
+
: ep.token
|
|
1077
|
+
? 'token'
|
|
1078
|
+
: (ep.allowRemote ? 'public, REMOTE OPEN' : 'loopback-only')
|
|
1069
1079
|
registerRoute({
|
|
1070
1080
|
path: `${base}/${name}`,
|
|
1071
1081
|
plugin: 'api',
|