Panel plugin routes

Is it possible to have routes in panel plugins? I know I can add routes at runtime since vue-router 2.2

beforeMount() {
    this.$router.addRoutes([{
        path: '/plugins/example/:id',
        component: MyDetailView
    }]);
}

Calling the registred route works but the panel view is gone.

this.$router.push(`/plugins/example/${id}`);

I’m looking for the exact same feature.
I guess using a route like plugins/example?id=1 will work, but it would be cleaner to keep the routes consistent with kirby’s way of structuring routes.

Thanks for the quick reply!
As I understand it, custom api endpoints will be located under api/example/:id.
What I need is to have url parameters in the plugins panel view. I gess i could define a new route for plugins/example/:id, but how can I then still display the plugins panel view for that route?