adding public api controller