How do I get registered apps list in python

I created a multi-app and want to dynamically fetch the registered app to dynamically display the menu. How do I get this variable in python?

Right now there’s probably no great way to do this. Programmatic control over the registered endpoints is on my todo-list though. Would you mind opening an issue? In the meantime I’ll try to think of a (probably hacky) workaround.

When the index page is created it gets the list of pages.

I tried to find out how this is done in the Panel code. But could not. Would that be the place to find inspiration for a workaround @philippjfr ?