You must specify the type ‘content-api’ in plugin-name/server/routes/index.js, like this:
module.exports = {
'content-api': {
type: 'content-api',
routes: [
{
method: 'POST',
path: '/some-path',
handler: 'myController.action',
config: {
policies: []
}
}
]
}
};