add api controller
Merge pull request #7 from thefury/5040-TO-api-endpoint

add api controller