Control Flow of Strapi Admin Panel

I assume, though I’ve never tried, you just need to check the incoming model and execute logic if that model matches some list of allowed models else it falls back to the default.

I’d suggest starting by throwing some console.log()s in and see what comes in.

Like if you were trying to modify the logic of:

The model comes from ctx.params (given this will be the internal model name which should be something like application::model.model)

1 Like