1234567891011121314151617181920212223 |
- <?php
- /*
- |--------------------------------------------------------------------------
- | Web Routes
- |--------------------------------------------------------------------------
- |
- | Here is where you can register web routes for your application. These
- | routes are loaded by the RouteServiceProvider within a group which
- | contains the "web" middleware group. Now create something great!
- |
- */
- use Illuminate\Support\Facades\Route;
- Route::any('/t', 'TestSomethingController@index');
- Route::any('/open/{box_no?}', 'TestSomethingController@open');
- Route::any('/close/{box_no?}', 'TestSomethingController@close');
- Route::any('/batterySwitch/{box_no?}', 'TestSomethingController@batterySwitch');
- if (config('app.env') == 'local') {
- Route::any('/test', 'TestSomethingController@index');
- Route::any('/{path}/test', 'TestSomethingController@index')->where('path', '.*');
- }
- Route::get('logs', '\Rap2hpoutre\LaravelLogViewer\LogViewerController@index');
|