Showing how to create api in AccountController.