You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

api.php 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. use Illuminate\Http\Request;
  3. /*
  4. |--------------------------------------------------------------------------
  5. | API Routes
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here is where you can register API routes for your application. These
  9. | routes are loaded by the RouteServiceProvider within a group which
  10. | is assigned the "api" middleware group. Enjoy building your API!
  11. |
  12. */
  13. // Route::middleware('auth:api')->get('/user', function (Request $request) {
  14. // return $request->user();
  15. // });
  16. Route::group(['middleware' => 'mobileapps'], function() {
  17. Route::post('/mobile/login', 'Api\LoginMobile@requestLogin');
  18. Route::post('/mobile/update/profile', 'Api\LoginMobile@updateProfile');
  19. Route::post('/mobile/update/image', 'Api\LoginMobile@updateProfileImage');
  20. Route::post('/mobile/update/password', 'Api\LoginMobile@updatePassword');
  21. Route::post('/mobile/logout', 'Api\LoginMobile@requestLogout');
  22. Route::post('/mobile/workorder/schedule','Api\WorkOrderMobile@getSchedule');
  23. Route::post('/mobile/docket', 'Api\WorkOrderMobile@getDocket');
  24. Route::post('/mobile/docket/detail', 'Api\WorkOrderMobile@getDocketDetail');
  25. Route::post('/mobile/workorder/detail','Api\WorkOrderMobile@getWorkOrderDetail');
  26. Route::post('/mobile/create/docket','Api\DocketMobile@createDocket');
  27. Route::post('/mobile/update/workorder','Api\WorkOrderMobile@updateWorkOrder');
  28. Route::get('/mobile/questions/list','Api\WorkOrderMobile@getQuestions');
  29. /////////////////////////////////////////////////////////////////////////////
  30. Route::get('/workorder/statistic','Api\MynixController@workOrderStatistics');
  31. Route::get('/workorder/list','Api\MynixController@workOrderList');
  32. Route::get('/customer/list','Api\MynixController@getCustomerList');
  33. Route::get('/customer/statistic','Api\MynixController@customerStatistic');
  34. Route::get('/get/password/{encrypt}/{string}','Api\LoginMobile@encryptPassword');
  35. Route::get('/update/incentives','DS\DealerClaimController@updateIncentives');
  36. Route::get('/form/statistic','Api\FormController@getFormStatistic');
  37. Route::get('/claim/12/12/2019','DS\MarketingController@manualDate');
  38. Route::get('/get-data','Api\FormController@get_data_form');
  39. });
  40. /*
  41. |--------------------------------------------------------------------------
  42. | Residential Form
  43. |--------------------------------------------------------------------------
  44. */
  45. Route::get('/get-coverage-detail/{_id}', 'Api\Controller@getCoverageDetail');