only register endpoint if compontent active
Merge pull request #9 from modemlooper/develop

only register endpoint if compontent active