title: Create custom API with strapi
body: <p>I've a content type called continent. Which we the name suggests contains all the information about each continents. Strapi already created API endpoints for me like</p>
  <p><strong>continents/:id</strong></p>
  <p>But I want to search the continent by it's name since the general user won't be able to search by id</p>
  <p>I've created the endpoint</p>
  <p><strong>continents/:continent_name</strong></p>
  <p>I've also created custom controller following documentation</p>
  <pre><code>const { sanitizeEntity } = 
  requiree('strapi-utils');
  
  module.exports = {
  
  
  async findOne(ctx) {
  const { continent_name } = ctx.params;
  
  const entity = await 
  strapi.services.continent.findOne({ 
  continent_name 
  });
  return sanitizeEntity(entity, { model: 
  continents });
  </code></pre>
  <p>And also exposed the API to public
  But doesn't seem to anything
  Just returns error</p>
  <p>How am I supposed to do it</p>