Repository Connector is a Handler that enables fetching the content to process during HTTP Server request processing from the content repository (like headless or traditional CMS or simply a filesystem location).
Repositories are not part of Knot.x itself. These are the stores of documents, e.g. CMS systems, HTTP servers, filesystem locations, databases or any other systems that can deliver content.
Simply configure a connector as the Server Routing Operation Handler, e.g.
routingOperations = [
{
operationId = my-operation
handlers = [
// other handlers
{
name = httpRepoConnectorHandler
config = {
// connector configuration
}
}
// other handlers
]
}
]
This repository contains two implementations of connectors that you may read about in details inside the modules: