mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-22 21:08:13 -05:00
f48e1b46a8
which works with proxies
21 lines
513 B
JavaScript
21 lines
513 B
JavaScript
const { SwaggerValidation } = require('@jc21/cypress-swagger-validation');
|
|
|
|
module.exports = (on, config) => {
|
|
// Replace swaggerBase config var wildcard
|
|
if (typeof config.env.swaggerBase !== 'undefined') {
|
|
config.env.swaggerBase = config.env.swaggerBase.replace('{{baseUrl}}', config.baseUrl);
|
|
}
|
|
|
|
// Plugin Events
|
|
on('task', SwaggerValidation(config));
|
|
on('task', require('./backendApi/task')(config));
|
|
on('task', {
|
|
log(message) {
|
|
console.log(message);
|
|
return null;
|
|
}
|
|
});
|
|
|
|
return config;
|
|
};
|