This commit is contained in:
2025-06-27 17:04:25 +08:00
parent c30ff3cca1
commit c8eb5f33ee
8 changed files with 147 additions and 46 deletions
+9 -2
View File
@@ -53,8 +53,8 @@ Route::group('/apis', function() {
Route::any('/energy/preset', [\app\console\controller\EnergyController::class, 'presets']);
//文章列表
Route::any('/article/list', [\app\console\controller\ArticleController::class, 'index']);
Route::any('/article/{id}/detail', [\app\console\controller\ArticleController::class, 'detail']);
Route::any('/article/list', [\app\apis\controller\ArticleController::class, 'index']);
Route::any('/article/{id}/detail', [\app\apis\controller\ArticleController::class, 'detail']);
});
// ====== ====== ====== 网站 ====== ====== ======
@@ -226,6 +226,13 @@ Route::group('/console', function() {
Route::any('/article/{id}/update', [\app\console\controller\ArticleController::class, 'edit']);
Route::any('/article/{id}/delete', [\app\console\controller\ArticleController::class, 'destroy']);
Route::any('/article/{id}/detail', [\app\console\controller\ArticleController::class, 'detail']);
//评论管理
Route::any('/comment/list', [\app\console\controller\CommentController::class, 'index']);
Route::any('/comment/add', [\app\console\controller\CommentController::class, 'add']);
Route::any('/comment/{id}/update', [\app\console\controller\CommentController::class, 'edit']);
Route::any('/comment/{id}/delete', [\app\console\controller\CommentController::class, 'destroy']);
Route::any('/comment/{id}/detail', [\app\console\controller\CommentController::class, 'detail']);
});
// ====== ====== ====== 后台管理 ====== ====== ======