Route With A Paramter

I have a feature that is used on two different paths, I want to use the same controller for both since all that is different between them is a parameter. But I don’t know how to set up the route in the config.

'blog/<action:\w+>' => 'blog/<action>',

'journal/<action:\w+>' => 'blog/<action>',

I want to add a paramater on to the route, like so…

'blog/<action:\w+>' => 'blog/<action>/type=blog',

'journal/<action:\w+>' => 'blog/<action>/type=journal',

How should I do this?

No problem; I worked it out.

'journal' => 'blog/index/param_name/param_value',

Got it . Thanks ~