feat: add baseos node enrollment
This commit is contained in:
@@ -109,6 +109,18 @@ export class CloudlyServer {
|
||||
'/curlfresh/:scriptname',
|
||||
this.cloudlyRef.nodeManager.curlfreshInstance.handler,
|
||||
);
|
||||
this.typedServer.server.addRoute(
|
||||
'/baseos/v1/nodes/register',
|
||||
new plugins.typedserver.servertools.Handler('POST', async (req, res) => {
|
||||
await this.cloudlyRef.baseOsManager.handleRegisterHttpRequest(req, res);
|
||||
}),
|
||||
);
|
||||
this.typedServer.server.addRoute(
|
||||
'/baseos/v1/nodes/heartbeat',
|
||||
new plugins.typedserver.servertools.Handler('POST', async (req, res) => {
|
||||
await this.cloudlyRef.baseOsManager.handleHeartbeatHttpRequest(req, res);
|
||||
}),
|
||||
);
|
||||
await this.typedServer.start();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user