-1

在高级应用程序中,我创建了新的模块 api(只需复制后端)。

在此处输入图像描述

并在 OpenServer 中修复路由:

在此处输入图像描述

像这样设置 RestApi 设置:https ://www.yiiframework.com/doc/guide/2.0/en/rest-quick-start

但是对于 url http://api/users我得到 404

怎么修?

Git 链接:https ://github.com/triest/Insigne/tree/master/api

4

1 回答 1

-1

在 config/main.php 中需要修复 'controllerNamespace'

于 2019-01-28T16:56:04.450 回答