var customOptions = this["undefined"] = {
"operationsSorter": "alpha",
"docExpansion": "none"
};
const showExplorer = false;
const suiOptions = {
operationsSorter: function (a, b) {
let order = {
'get': '0',
'post': '1',
'put': '2',
'patch': '3',
'delete': '4'
};
return order[a.get('method')].localeCompare(order[b.get('method')]);
},
docExpansion: 'none'
};
const customCss = '.swagger-ui .topbar { display: none }';
app.use(constants.SERVICE_BASE_URI + '/api-docs', swaggerUi.serve, swaggerUi.setup(swaggerDocument, showExplorer, suiOptions, customCss));```