feat: add built-in OCI registry
This commit is contained in:
@@ -93,6 +93,18 @@ export class CloudlyServer {
|
||||
preferredCompressionMethod: 'gzip',
|
||||
});
|
||||
this.typedServer.typedrouter.addTypedRouter(this.typedrouter);
|
||||
this.typedServer.server.addRoute(
|
||||
'/v2',
|
||||
new plugins.typedserver.servertools.Handler('ALL', async (req, res) => {
|
||||
await this.cloudlyRef.registryManager.handleHttpRequest(req, res);
|
||||
}),
|
||||
);
|
||||
this.typedServer.server.addRoute(
|
||||
'/v2/{*splat}',
|
||||
new plugins.typedserver.servertools.Handler('ALL', async (req, res) => {
|
||||
await this.cloudlyRef.registryManager.handleHttpRequest(req, res);
|
||||
}),
|
||||
);
|
||||
this.typedServer.server.addRoute(
|
||||
'/curlfresh/:scriptname',
|
||||
this.cloudlyRef.nodeManager.curlfreshInstance.handler,
|
||||
|
||||
Reference in New Issue
Block a user