Hide Default Controller From Url

I’ve created a module sliders

Url’s are like this: sliders/default/update?id=9

How can I change them to this: sliders/update?id=9

also how can I access the urlManager rules from my config file:

This is my init function inside Module.php:




    public function init()

    {

        parent::init();


	    Yii::configure($this, require(__DIR__ . '/config.php'));

            Yii::$app->getUrlManager()->addRules(/* GET CONFIG VALUES */);




    }

This is my config file:


<?php

return [

	'components' => [

		'urlManager' => [

			'class' => 'yii\web\UrlManager',

			'enablePrettyUrl' => true,

			'rules' => [


			],

		]

	],

	'params' => [

		// list of parameters

		'maxPostCount' => 5,

	],




];