(require("server/setServer"))(app, routePrefix, documents, themes)
The function sets the exporting endpoint, as well as registers the documents and themes
Parameters:
| Name | Type | Description |
|---|---|---|
app |
Object | express application instance |
routePrefix |
string | endpoint's route prefix path. e.g: 'agen' would be used for /agen/export |
documents |
Array | array of all the documents |
themes |
Array | array of all the themes |
- Source: