How to Reemplace findOne for ID for slug in strapi 4.0

can you please explain a bit more about routes?

are we customizing the routes in the api/content-type/routes ?

'use strict';

/**
 * post router.
 */

const { createCoreRouter } = require('@strapi/strapi').factories;

module.exports = createCoreRouter('api::post.post');