目录

API路由

优质
小牛编辑
140浏览
2023-12-01

添加路由

请在每个应用下route.php添加路由,使用资源路由添加; demo 应用路由(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');