I migrating from 4.8.2 to 4.25.20 and can't expose APIs via Permissions -> Public -> Roles

System Information
  • Strapi Version: 4.25.20
  • Operating System: Use docker with content db
  • Database: pg
  • Node Version: 18.19.0
  • NPM Version:
  • Yarn Version:

I migrating from 4.8.2 to 4.25.20. Manually update all needed files, when finished I can’t expose APIs via Permissions → Public → Roles. If I create new api/content-types it works as expected.
What file/setting should I add/edit to allow all migrated content-type be visible in Permissions?

Solved.
The issue was that files in /api folder were .js, and it was not enough. So adapting all files to .ts solved an issue.