Skip to content
This repository has been archived by the owner on Dec 28, 2020. It is now read-only.

Make yii\web\GroupUrlRule support yii\rest\UrlRule #9

Closed
yii-bot opened this issue Apr 5, 2018 · 1 comment
Closed

Make yii\web\GroupUrlRule support yii\rest\UrlRule #9

yii-bot opened this issue Apr 5, 2018 · 1 comment

Comments

@yii-bot
Copy link

yii-bot commented Apr 5, 2018

This issue has originally been reported by @callmez at yiisoft/yii2#9122.
Moved here by @samdark.


new GroupUrlRule([
    'prefix' => 'api',
    'rules' => [
        ['class' => 'yii\rest\UrlRule', 'controller' => 'user'],
        ['class' => 'yii\rest\UrlRule', 'controller' => 'product'],
    ],
]);
@samdark
Copy link
Member

samdark commented Sep 8, 2020

Already implemented in Yii 3 router.

@samdark samdark closed this as completed Sep 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants