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.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. Route::post('/mobile/get-reset-docket-list', 'Api\DocketMobile@getResetDocket');
  30. Route::post('/mobile/save-reset-docket', 'Api\DocketMobile@saveResetDocket');
  31. /////////////////////////////////////////////////////////////////////////////
  32. Route::get('/workorder/statistic','Api\MynixController@workOrderStatistics');
  33. Route::get('/workorder/list','Api\MynixController@workOrderList');
  34. Route::get('/customer/list','Api\MynixController@getCustomerList');
  35. Route::get('/customer/statistic','Api\MynixController@customerStatistic');
  36. Route::get('/get/password/{encrypt}/{string}','Api\LoginMobile@encryptPassword');
  37. Route::get('/update/incentives','DS\DealerClaimController@updateIncentives');
  38. Route::get('/form/statistic','Api\FormController@getFormStatistic');
  39. Route::get('/claim/12/12/2019','DS\MarketingController@manualDate');
  40. Route::get('/get-data','Api\FormController@get_data_form');
  41. });
  42. /*
  43. |--------------------------------------------------------------------------
  44. | Check Version
  45. |--------------------------------------------------------------------------
  46. */
  47. Route::get('/mobile/apps_version', 'Api\AppVersionController@compareVersion');
  48. /*
  49. |--------------------------------------------------------------------------
  50. | Residential Form
  51. |--------------------------------------------------------------------------
  52. */
  53. Route::get('/get-coverage-detail/{building_name}/{street}', 'Api\Controller@getCoverageDetail')->where('street', '.*');
  54. Route::get('/get-street/{building_name}', 'Api\Controller@getStreet');