Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot access 'domain/api/user' when routes conf has already been set #8

Closed
chenzeshu opened this issue Feb 2, 2018 · 1 comment
Closed

Comments

@chenzeshu
Copy link

chenzeshu commented Feb 2, 2018

  • environment : homestead 5.0.1
  • nginx conf
    as document told
  • dictionary
/
┕---web
   ┕---index
        ┕---controller
            ┕---api
                ┕---UserController extend Controller  <-- Mix\web\Controller
                     ┕---public function actionIndex()
  • main_web
'rules'   => [
       'api/:controller/:action' => 'api/:controller/:action',
],
  • way to start mixPHP
sudo mix-httpd service/start -d -u
  • question
    I cannot visit domain/api/user however domain/api/user/index can be visited
@onanying
Copy link
Member

master 分支,路由歧义问题已经适配,该问题已经解决。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants