Revert "registration of api controllers fixed"

This reverts commit 390d797cd77acd347c5f42645ebd16c4e940190e.