refactor: 修改文章相关接口

This commit is contained in:
2025-01-10 18:10:25 +08:00
parent dad174dc1b
commit f82ac85b46
5 changed files with 252 additions and 2 deletions

View File

@@ -28,6 +28,21 @@ Route::group('v1', function () {
// 文章模块
Route::group('article', function () {
// 文章列表
Route::get('index', 'Article/index');
// 文章详情
Route::get('read/:id', 'Article/read');
// 文章新增
Route::post('save', 'Article/save');
// 文章更新
Route::put('update/:id', 'Article/update');
// 文章删除
Route::delete('delete/:id', 'Article/delete');
// 文章分类
Route::group('category', function () {
// 分类列表