How to Create a Custom API Endpoint in Strapi

from where did we get ```
console.log(‘pages-report’, strapi.service(‘api::pages-report.pages-report’)


should not this be 

api::postsReport.pages-report’