routes.php
878 Bytes
<?php
use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;
Admin::routes();
Route::group([
'prefix' => config('admin.route.prefix'),
'namespace' => config('admin.route.namespace'),
'middleware' => config('admin.route.middleware'),
], function (Router $router) {
$router->get('/index', 'HomeController@index');
$router->resource('userAddress', 'UserAddressController');
$router->resource('inquiry', 'InquiryController');
$router->resource('order', 'OrderController');
$router->resource('test', 'TestController');
$router->resource('users', 'UserController');
//下载pdf
Route::get('/api/order_download', '\App\Admin\Controllers\Api\OrderApiController@orderDownload');
Route::get('/api/orderDownloadShow', '\App\Admin\Controllers\Api\OrderApiController@orderDownloadShow');
});