From 15312d41454fa144bea939bf5e66e7af53e90b16 Mon Sep 17 00:00:00 2001 From: xiaodi Date: Sun, 19 Jan 2020 17:19:05 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=20=E5=B2=97=E4=BD=8D?= =?UTF-8?q?=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- route/admin/app.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/route/admin/app.php b/route/admin/app.php index 95a8012..8add21e 100644 --- a/route/admin/app.php +++ b/route/admin/app.php @@ -80,6 +80,11 @@ Route::rule('/dept', 'system.dept/add', 'POST')->middleware(Permission::class, 'dept-add'); Route::rule('/dept/:id', 'system.dept/update', 'PUT')->middleware(Permission::class, 'dept-update'); Route::rule('/dept/:id', 'system.dept/delete', 'DELETE')->middleware(Permission::class, 'dept-delete'); + + Route::rule('/post', 'system.post/list', 'GET')->middleware(Permission::class, 'post-view'); + Route::rule('/post', 'system.post/add', 'POST')->middleware(Permission::class, 'post-add'); + Route::rule('/post/:id', 'system.post/update', 'PUT')->middleware(Permission::class, 'post-update'); + Route::rule('/post/:id', 'system.post/delete', 'DELETE')->middleware(Permission::class, 'post-delete'); })->allowCrossDomain()->middleware(Jwt::class); // 模拟数据(可删除)