请在每个应用下route.php添加路由,使用资源路由添加; demo 应用路由(api/demo/route.php):
route.php
api/demo/route.php
<?php use think\Route; Route::resource('demo/categories', 'demo/Categories'); Route::resource('demo/articles', 'demo/Articles'); Route::resource('demo/pages', 'demo/Pages');