Skip to content

Commit

Permalink
配置 岗位路由
Browse files Browse the repository at this point in the history
  • Loading branch information
edenleung committed Jan 19, 2020
1 parent b6d033c commit 15312d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions route/admin/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

// 模拟数据(可删除)
Expand Down

0 comments on commit 15312d4

Please sign in to comment.