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.

api.php 9.9KB

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