[api] refactor application controller