diff --git a/app/Http/Controllers/Admin/DashboardController.php b/app/Http/Controllers/Admin/DashboardController.php index b83416d0..d3ec0ddf 100644 --- a/app/Http/Controllers/Admin/DashboardController.php +++ b/app/Http/Controllers/Admin/DashboardController.php @@ -14,7 +14,7 @@ use Illuminate\Support\Facades\Redis; class DashboardController extends Controller { - public function index (Request $request) { + public function override (Request $request) { return response([ 'data' => [ 'month_income' => Redis::get('month_income'), diff --git a/routes/api.php b/routes/api.php index 4b8959bd..e215d21c 100755 --- a/routes/api.php +++ b/routes/api.php @@ -44,7 +44,7 @@ Route::prefix('v1') Route::post('user/update', 'Admin\\UserController@update'); Route::get ('user/id2UserInfo/{id}', 'Admin\\UserController@id2UserInfo'); // Dashboard - Route::get ('dashboard', 'Admin\\DashboardController@index'); + Route::get ('dashboard/override', 'Admin\\DashboardController@override'); // Notice Route::get ('notice/fetch', 'Admin\\NoticeController@fetch'); Route::post('notice/save', 'Admin\\NoticeController@save');