UNPKG

atlassian-connect-express

Version:

Library for building Atlassian Add-ons on top of Express

12 lines (10 loc) 337 B
module.exports = function (addon) { const product = addon.config.product(); if (product.isJIRA || product.isConfluence) { return require("./register-jira-conf"); } else if (product.isBitbucket) { return require("./register-bitbucket"); } else { throw new Error(`Not sure how to register against ${product}`); } };