api.php 1.2 KB

123456789101112131415161718192021222324252627
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | API Routes
  5. |--------------------------------------------------------------------------
  6. |
  7. | Here is where you can register API routes for your application. These
  8. | routes are loaded by the RouteServiceProvider within a group which
  9. | is assigned the "api" middleware group. Enjoy building your API!
  10. |
  11. */
  12. Route::namespace('Api')->group(function () {
  13. //视频接口
  14. Route::post('camera/getlist', 'CameraApiController@getCamerasList');
  15. Route::post('camera/geturl', 'CameraApiController@getCamerasUrl');
  16. Route::post('camera/transcode', 'CameraApiController@getTranscodeInfo');
  17. Route::get('camera/stopstream', 'CameraApiController@stopCamerasStream');
  18. Route::get('camera/test', 'CameraApiController@test');
  19. //海康视频接口
  20. Route::get('haikang/monitor/regions/list', 'HaiKangController@getRegionsList');
  21. Route::get('haikang/monitor/cameras/list', 'HaiKangController@getCamerasList');
  22. Route::get('haikang/monitor/cameras/url', 'HaiKangController@getCamerasUrl');
  23. Route::get('haikang/monitor/cameras/transcode', 'HaiKangController@getTranscodeInfo');
  24. });