api.php 1.6 KB

1234567891011121314151617181920212223242526272829303132
  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::middleware('auth:api')->namespace('Api')->group(function () {
  13. //视频接口
  14. Route::post('camera/getlist', 'CameraApiController@getCamerasList');
  15. Route::post('camera/geturl', 'CameraApiController@getCamerasUrl');
  16. Route::post('camera/getrtsp', 'CameraApiController@getCamerasRtsp');
  17. Route::post('camera/transcode', 'CameraApiController@getTranscodeInfo');
  18. Route::get('camera/stopstream', 'CameraApiController@stopCamerasStream');
  19. Route::post('camera/lake/getlist', 'CameraApiController@getSouthLakeCamera');
  20. Route::post('camera/surface/getlist', 'CameraApiController@getWorkSurfaceCamera');
  21. Route::post('camera/get_hik_rtsp', 'CameraApiController@getHikRtsp');//海康获取rtsp流
  22. Route::post('camera/playback/getlist', 'CameraApiController@getPlaybackList');//回放时间段列表
  23. Route::post('camera/playback/geturl', 'CameraApiController@getPlaybackUrl');//回放url
  24. //海康视频接口
  25. Route::get('haikang/monitor/regions/list', 'HaiKangController@getRegionsList');
  26. Route::get('haikang/monitor/cameras/list', 'HaiKangController@getCamerasList');
  27. Route::get('haikang/monitor/cameras/url', 'HaiKangController@getCamerasUrl');
  28. Route::get('haikang/monitor/cameras/transcode', 'HaiKangController@getTranscodeInfo');
  29. });