api.php 1.3 KB

12345678910111213141516171819202122232425262728
  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/transcode', 'CameraApiController@getTranscodeInfo');
  17. Route::get('camera/stopstream', 'CameraApiController@stopCamerasStream');
  18. Route::post('camera/lake/getlist', 'CameraApiController@getSouthLakeCamera');
  19. Route::post('camera/surface/getlist', 'CameraApiController@getWorkSurfaceCamera');
  20. //海康视频接口
  21. Route::get('haikang/monitor/regions/list', 'HaiKangController@getRegionsList');
  22. Route::get('haikang/monitor/cameras/list', 'HaiKangController@getCamerasList');
  23. Route::get('haikang/monitor/cameras/url', 'HaiKangController@getCamerasUrl');
  24. Route::get('haikang/monitor/cameras/transcode', 'HaiKangController@getTranscodeInfo');
  25. });