New controller for api