<?php /* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond to | and give it the controller to call when that URI is requested. | */ Route::group(['middleware' => ['web', 'menu']], function () { Route::get('/', 'WebController@Entrance'); Route::match(['get', 'post'], '/web/{key}', 'WebController@Entrance'); // Route::get('/', 'WebController@info'); // Route::match(['get', 'post'], '/web/{key}', 'WebController@info'); Route::match(['get', 'post'], '/supplier/{key}', 'SupplierController@info'); Route::match(['get', 'post'], '/supplier_contact/{key}', 'SupplierContactController@info'); Route::match(['get', 'post'], '/receipt/{key}', 'ReceiptController@info'); // Route::match(['get', 'post'], '/supplier_sync_log/{key}', 'SupplierSyncLogController@info'); Route::match(['get', 'post'], '/index/{key}', 'IndexController@Entrance'); Route::match(['get', 'post'], '/log/{key}', 'LogController@Entrance'); // Route::match(['get', 'post'], '/api/{key}', 'ApiController@Entrance'); // Route::match(['get', 'post'], '/hd/{key}', 'HandleController@Entrance'); Route::get('/pushAmq', 'QueuedController@pushAmq'); Route::get('/pullAmq', 'QueuedController@pullAmq'); }); Route::group(['middleware' => ['web'], 'namespace' => 'Api'], function () { Route::match(['get', 'post'], '/api/common/{key}', 'CommonApiController@Entrance'); Route::match(['get', 'post'], '/api/supplier_log/{key}', 'SupplierLogApiController@Entrance'); Route::match(['get', 'post'], '/api/supplier_contact/{key}', 'SupplierContactApiController@Entrance'); Route::match(['get', 'post'], '/api/supplier/{key}', 'SupplierApiController@Entrance'); Route::match(['get', 'post'], '/api/log/{key}', 'LogApiController@Entrance'); Route::match(['get', 'post'], '/api/receipt/{key}', 'ReceiptApiController@Entrance'); Route::match(['get', 'post'], '/api/supplier_sync_log/{key}', 'SupplierSyncLogApiController@Entrance'); });