Modify the controller for api
move the api auth check to controller
some refactoring
CR changes
Merge pull request #194 from qboss/19795

Modify the controller for api