This commit is contained in:
root 2019-12-23 16:39:06 +08:00
parent 56d0305bf0
commit b6df305cdb
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ use Illuminate\Support\Facades\Redis;
class DashboardController extends Controller class DashboardController extends Controller
{ {
public function index (Request $request) { public function override (Request $request) {
return response([ return response([
'data' => [ 'data' => [
'month_income' => Redis::get('month_income'), 'month_income' => Redis::get('month_income'),

View File

@ -44,7 +44,7 @@ Route::prefix('v1')
Route::post('user/update', 'Admin\\UserController@update'); Route::post('user/update', 'Admin\\UserController@update');
Route::get ('user/id2UserInfo/{id}', 'Admin\\UserController@id2UserInfo'); Route::get ('user/id2UserInfo/{id}', 'Admin\\UserController@id2UserInfo');
// Dashboard // Dashboard
Route::get ('dashboard', 'Admin\\DashboardController@index'); Route::get ('dashboard/override', 'Admin\\DashboardController@override');
// Notice // Notice
Route::get ('notice/fetch', 'Admin\\NoticeController@fetch'); Route::get ('notice/fetch', 'Admin\\NoticeController@fetch');
Route::post('notice/save', 'Admin\\NoticeController@save'); Route::post('notice/save', 'Admin\\NoticeController@save');