Enable or Disable App by each Project from Settings

I have an Forge/Jira app consisting of 3 modules - 1. Admin page, 2. Issue glance. 3. Project Page
I want to have a checkbox/toggle on the admin page which would enable/disable the app feature by project.

I know there’s a way to do this. But not able to find it. Any help is appreciated.