17 lines
450 B
JavaScript
17 lines
450 B
JavaScript
|
|
'use strict';
|
||
|
|
|
||
|
|
// dashboardAPI command registry. Canonical names follow CONTRACTS.md §1.
|
||
|
|
// The legacy `registerChild` topic is kept as an alias of `child.register`
|
||
|
|
// (Phase 1 canonical) and logs a one-time deprecation warning on first use.
|
||
|
|
|
||
|
|
const handlers = require('./handlers');
|
||
|
|
|
||
|
|
module.exports = [
|
||
|
|
{
|
||
|
|
topic: 'child.register',
|
||
|
|
aliases: ['registerChild'],
|
||
|
|
payloadSchema: { type: 'any' },
|
||
|
|
handler: handlers.registerChild,
|
||
|
|
},
|
||
|
|
];
|