Dashboard sipadu mbip
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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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::group(['middleware' => 'mobileapps'], function() {
  14. /*-------------------------------------------------------------------------
  15. | Staff Login/Logout/Detail
  16. |-------------------------------------------------------------------------*/
  17. Route::post('/mobile/staff/login', 'Api\LoginController@requestStaffLogin');
  18. Route::post('/mobile/staff/logout', 'Api\LoginController@requestStaffLogout');
  19. Route::post('/mobile/staff/department/list', 'Api\DepartmentController@requestStaffDepartment');
  20. Route::post('/mobile/staff/deedlaw/list', 'Api\DepartmentController@requestStaffDeedLaw');
  21. Route::post('/mobile/staff/faulty/list', 'Api\DepartmentController@requestStaffFaulty');
  22. Route::post('/mobile/staff/update/coordinates', 'Api\TrackMapController@save_updateLocation');
  23. Route::post('/mobile/staff/compound/today/list', 'Api\CompoundController@viewCompoundToday');
  24. Route::post('/mobile/store/compound', 'Api\CompoundResourceController@store');
  25. Route::post('/mobile/store/compound/picture', 'Api\CompoundController@storeCompoundAttachment');
  26. Route::post('/mobile/store/acceptance/compound', 'Api\CompoundController@storeAcceptanceCompound');
  27. /*-------------------------------------------------------------------------
  28. | Department
  29. |-------------------------------------------------------------------------*/
  30. Route::get('/department/list', 'Api\DepartmentController@departmentList');
  31. Route::post('/department/detail', 'Api\DepartmentController@departmentDetail');
  32. Route::post('/delete/department', 'Api\DepartmentController@deleteDepartment');
  33. Route::get('/filter-department-based-faulty/{id}', 'Api\DepartmentController@filterDepartmentBasedFaulty');
  34. /*-------------------------------------------------------------------------
  35. | Acts & UUK
  36. |-------------------------------------------------------------------------*/
  37. Route::get('/deed-law/list', 'Api\DepartmentController@deedLawList');
  38. Route::get('/officer/{jbkod}/deed-law/list', 'Api\DepartmentController@officerDeedLawList');
  39. Route::post('/deed-law/detail', 'Api\DepartmentController@deedLawDetail');
  40. Route::post('/delete/deed-law', 'Api\DepartmentController@deleteDeedLaw');
  41. Route::get('/get-deedlaw-based-faulty/{id}', 'Api\DepartmentController@getDeedlawBasedFaulty');
  42. /*-------------------------------------------------------------------------
  43. | Faulty
  44. |-------------------------------------------------------------------------*/
  45. Route::get('/faulty/list', 'Api\DepartmentController@faultyList');
  46. Route::get('/officer/{jbkod}/faulty/list', 'Api\DepartmentController@officerFaultyList');
  47. Route::get('/faulty/{jbkod}/{akkod}/list', 'Api\DepartmentController@faultyListFilter');
  48. Route::post('/faulty/detail', 'Api\DepartmentController@faultyDetail');
  49. Route::post('/delete/faulty', 'Api\DepartmentController@deleteFaulty');
  50. /*-------------------------------------------------------------------------
  51. | Staff
  52. |-------------------------------------------------------------------------*/
  53. Route::get('/staff/list/{roles}', 'Api\StaffController@staffList');
  54. Route::get('/officer/{jbkod}/staff/list/{roles}', 'Api\StaffController@officerStaffList');
  55. Route::get('/staff/{department}/{position}/{module}/list/{roles}', 'Api\StaffController@staffFilterList');
  56. Route::post('/staff/detail', 'Api\StaffController@staffDetail');
  57. Route::post('/delete/staff', 'Api\StaffController@deleteStaff');
  58. /*-------------------------------------------------------------------------
  59. | Application
  60. |-------------------------------------------------------------------------*/
  61. Route::get('/user/app/list', 'Api\ApplicationController@appList');
  62. Route::get('{jbkod}/user/app/list', 'Api\ApplicationController@officerAppList');
  63. /*-------------------------------------------------------------------------
  64. | Compound
  65. |-------------------------------------------------------------------------*/
  66. Route::get('/list/compound', 'Api\CompoundResourceController@index');
  67. Route::post('/update/compound/via-dashboard', 'Api\CompoundResourceController@updateStatusPaymentViaDashboard');
  68. Route::get('/compound/list/{modul}', 'Api\CompoundController@compoundList');
  69. Route::get('/compound/{jbkod}/{akta}/{sec}/list/{modul}', 'Api\CompoundController@compoundFilterList');
  70. Route::get('/compound/completed/list', 'Api\CompoundController@compoundCompleteLists');
  71. Route::get('/compound/completed/{jbkod}/{akta}/{sec}/list', 'Api\CompoundController@compoundCompleteFilterList');
  72. Route::get('/compound/{no_siri}/memo/list', 'Api\MemoController@memoList');
  73. Route::post('/compound/delete/memo', 'Api\MemoController@deleteMemo');
  74. /*-------------------------------------------------------------------------
  75. | Investigation
  76. |-------------------------------------------------------------------------*/
  77. Route::get('/investigation/{no_siri}/attachment/list', 'Api\InvestigationController@investigationAttachmentList');
  78. Route::post('/investigation/attachment/delete', 'Api\InvestigationController@deleteAttachment');
  79. /*-------------------------------------------------------------------------
  80. | Inventory
  81. |-------------------------------------------------------------------------*/
  82. Route::get('/inventory/{no_siri}/list', 'Api\InventoryController@iventoryList');
  83. Route::post('/inventory/detail', 'Api\InventoryController@getDetail');
  84. Route::post('/inventory/delete', 'Api\InventoryController@deleteItem');
  85. /*-------------------------------------------------------------------------
  86. | Setting
  87. |-------------------------------------------------------------------------*/
  88. Route::get('/setting/memo/list', 'Api\SettingController@memoList');
  89. Route::post('/setting/memo/confirm', 'Api\SettingController@confirmMemo');
  90. Route::post('/setting/delete/memo', 'Api\SettingController@deleteMemo');
  91. Route::get('/setting/template/{_id}/{status}/list', 'Api\SettingController@templateList');
  92. Route::post('/setting/template/confirm', 'Api\SettingController@confirmTemplate');
  93. Route::post('/setting/template/send-email', 'Api\SettingController@sendNotice');
  94. Route::post('/setting/template/delete', 'Api\SettingController@deleteTemplate');
  95. Route::get('/setting/api-key/list', 'Api\SettingController@apiKeyList');
  96. Route::post('/delete-api-key', 'Api\SettingController@deleteApiKey');
  97. Route::get('/setting/api-integration/list', 'Api\SettingController@apiKeyIntegrationList');
  98. /*-------------------------------------------------------------------------
  99. | Tracking Map
  100. |-------------------------------------------------------------------------*/
  101. Route::get('/track/staff/list', 'Api\TrackMapController@getStaffList');
  102. Route::get('/track/coordinates/{id}/list', 'Api\TrackMapController@getNearestLocation');
  103. Route::post('/update/emergency/status', 'Api\TrackMapController@postEmergency');
  104. Route::post('/update/normal/status', 'Api\TrackMapController@returnNormal');
  105. /*-------------------------------------------------------------------------
  106. | Cron Job
  107. |-------------------------------------------------------------------------*/
  108. Route::get('/cron/job/update-compound-price', 'Api\JobController@JobMemo');
  109. Route::get('/cron/job/send-notice-letter', 'Api\JobController@sendLetterNotice');
  110. /*-------------------------------------------------------------------------
  111. | Payment
  112. |-------------------------------------------------------------------------*/
  113. Route::post('/compound/make/payment', 'PaymentController@makeMobilePayment');
  114. Route::post('/payment/compound', 'Api\PaymentController@paymentCompound');
  115. Route::post('/update/payment/compound', 'Api\PaymentController@updatePayment');
  116. Route::get('/report/payment/list', 'Api\PaymentController@reportpaymentList');
  117. /*-------------------------------------------------------------------------
  118. | Notification
  119. |-------------------------------------------------------------------------*/
  120. Route::post('/update/firebase/token', 'NotificationController@saveToken');
  121. Route::post('/push/notification', 'NotificationController@sendNotification');
  122. Route::post('/mobile/notification/list', 'NotificationController@getNotificationMobile');
  123. Route::post('/web/notification/list', 'NotificationController@getNotificationWeb');
  124. Route::post('/delete/notification', 'NotificationController@deleteNotification');
  125. /*-------------------------------------------------------------------------
  126. | Enforcer Task/Job
  127. |-------------------------------------------------------------------------*/
  128. Route::post('/enforcer/compound/list', 'Api\CompoundController@confidentialFileList');
  129. Route::post('/enforcer/inventory/list', 'Api\InventoryController@iventoryListMobile');
  130. Route::post('/enforcer/add/inventory', 'Api\InventoryController@addItemMobile');
  131. Route::post('/enforcer/add/inventory/picture', 'Api\InventoryController@addItemPictureMobile');
  132. Route::post('/enforcer/inventory/scan/barcode', 'Api\InventoryController@getDetailMobile');
  133. Route::post('/enforcer/delete/inventory', 'Api\InventoryController@deleteItemMobile');
  134. /*-------------------------------------------------------------------------
  135. | Statistics
  136. |-------------------------------------------------------------------------*/
  137. Route::get('/report/compound/list/{start}/{end}', 'Api\StatisticController@reportCompoundList');
  138. /*-------------------------------------------------------------------------
  139. | API Integration
  140. |-------------------------------------------------------------------------*/
  141. Route::post('/search/compound', 'Api\RestfulapiController@viewCompoundPersonal');
  142. Route::post('/update/compound/payment', 'Api\RestfulapiController@updatePaymentIntegrasi');
  143. Route::get('/store/external/summon', 'Api\ImportDataController@storeExternalCompound');
  144. });