web.php 950 B

1234567891011121314151617181920212223
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Web Routes
  5. |--------------------------------------------------------------------------
  6. |
  7. | Here is where you can register web routes for your application. These
  8. | routes are loaded by the RouteServiceProvider within a group which
  9. | contains the "web" middleware group. Now create something great!
  10. |
  11. */
  12. use Illuminate\Support\Facades\Route;
  13. Route::any('/t', 'TestSomethingController@index');
  14. Route::any('/open/{box_no?}', 'TestSomethingController@open');
  15. Route::any('/close/{box_no?}', 'TestSomethingController@close');
  16. Route::any('/batterySwitch/{box_no?}', 'TestSomethingController@batterySwitch');
  17. if (config('app.env') == 'local') {
  18. Route::any('/test', 'TestSomethingController@index');
  19. Route::any('/{path}/test', 'TestSomethingController@index')->where('path', '.*');
  20. }
  21. Route::get('logs', '\Rap2hpoutre\LaravelLogViewer\LogViewerController@index');