123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- <?php
-
- use Illuminate\Http\Request;
-
- /*
- |--------------------------------------------------------------------------
- | API Routes
- |--------------------------------------------------------------------------
- |
- | Here is where you can register API routes for your application. These
- | routes are loaded by the RouteServiceProvider within a group which
- | is assigned the "api" middleware group. Enjoy building your API!
- |
- */
-
- Route::group(['middleware' => 'mobileapps'], function() {
- /*-------------------------------------------------------------------------
- | Staff Login/Logout/Detail
- |-------------------------------------------------------------------------*/
- Route::post('/mobile/staff/login', 'Api\LoginController@requestStaffLogin');
- Route::post('/mobile/staff/logout', 'Api\LoginController@requestStaffLogout');
- Route::post('/mobile/staff/department/list', 'Api\DepartmentController@requestStaffDepartment');
- Route::post('/mobile/staff/deedlaw/list', 'Api\DepartmentController@requestStaffDeedLaw');
- Route::post('/mobile/staff/faulty/list', 'Api\DepartmentController@requestStaffFaulty');
- Route::post('/mobile/staff/update/coordinates', 'Api\TrackMapController@save_updateLocation');
- Route::post('/mobile/staff/compound/today/list', 'Api\CompoundController@viewCompoundToday');
- Route::post('/mobile/store/compound', 'Api\CompoundResourceController@store');
- Route::post('/mobile/store/notice', 'Api\CompoundResourceController@storeNotice');
- Route::post('/mobile/store/compound/picture', 'Api\CompoundController@storeCompoundAttachment');
- Route::post('/mobile/store/acceptance/compound', 'Api\CompoundController@storeAcceptanceCompound');
- /*-------------------------------------------------------------------------
- | Department
- |-------------------------------------------------------------------------*/
- Route::get('/department/list', 'Api\DepartmentController@departmentList');
- Route::post('/department/detail', 'Api\DepartmentController@departmentDetail');
- Route::post('/delete/department', 'Api\DepartmentController@deleteDepartment');
- Route::get('/filter-department-based-faulty/{id}', 'Api\DepartmentController@filterDepartmentBasedFaulty');
- /*-------------------------------------------------------------------------
- | Acts & UUK
- |-------------------------------------------------------------------------*/
- Route::get('/deed-law/list', 'Api\DepartmentController@deedLawList');
- Route::get('/officer/{jbkod}/deed-law/list', 'Api\DepartmentController@officerDeedLawList');
- Route::post('/deed-law/detail', 'Api\DepartmentController@deedLawDetail');
- Route::post('/delete/deed-law', 'Api\DepartmentController@deleteDeedLaw');
- Route::get('/get-deedlaw-based-faulty/{id}', 'Api\DepartmentController@getDeedlawBasedFaulty');
- /*-------------------------------------------------------------------------
- | Faulty
- |-------------------------------------------------------------------------*/
- Route::get('/faulty/list', 'Api\DepartmentController@faultyList');
- Route::get('/officer/{jbkod}/faulty/list', 'Api\DepartmentController@officerFaultyList');
- Route::get('/faulty/{jbkod}/{akkod}/list', 'Api\DepartmentController@faultyListFilter');
- Route::post('/faulty/detail', 'Api\DepartmentController@faultyDetail');
- Route::post('/delete/faulty', 'Api\DepartmentController@deleteFaulty');
- /*-------------------------------------------------------------------------
- | Staff
- |-------------------------------------------------------------------------*/
- Route::get('/staff/list/{roles}', 'Api\StaffController@staffList');
- Route::get('/officer/{jbkod}/staff/list/{roles}', 'Api\StaffController@officerStaffList');
- Route::get('/staff/{department}/{position}/{module}/list/{roles}', 'Api\StaffController@staffFilterList');
- Route::post('/staff/detail', 'Api\StaffController@staffDetail');
- Route::post('/delete/staff', 'Api\StaffController@deleteStaff');
- /*-------------------------------------------------------------------------
- | Application
- |-------------------------------------------------------------------------*/
- Route::get('/user/app/list', 'Api\ApplicationController@appList');
- Route::get('{jbkod}/user/app/list', 'Api\ApplicationController@officerAppList');
- /*-------------------------------------------------------------------------
- | Compound
- |-------------------------------------------------------------------------*/
- Route::get('/list/compound', 'Api\CompoundResourceController@index');
- Route::post('/update/compound/via-dashboard', 'Api\CompoundResourceController@updateStatusPaymentViaDashboard');
- Route::get('/compound/list/{modul}', 'Api\CompoundController@compoundList');
- Route::get('/compound/{jbkod}/{akta}/{sec}/list/{modul}', 'Api\CompoundController@compoundFilterList');
- Route::get('/compound/completed/list', 'Api\CompoundController@compoundCompleteLists');
- Route::get('/compound/completed/{jbkod}/{akta}/{sec}/list', 'Api\CompoundController@compoundCompleteFilterList');
- Route::get('/compound/{no_siri}/memo/list', 'Api\MemoController@memoList');
- Route::post('/compound/delete/memo', 'Api\MemoController@deleteMemo');
- /*-------------------------------------------------------------------------
- | Investigation
- |-------------------------------------------------------------------------*/
- Route::get('/investigation/{no_siri}/attachment/list', 'Api\InvestigationController@investigationAttachmentList');
- Route::post('/investigation/attachment/delete', 'Api\InvestigationController@deleteAttachment');
- /*-------------------------------------------------------------------------
- | Inventory
- |-------------------------------------------------------------------------*/
- Route::get('/inventory/{no_siri}/list', 'Api\InventoryController@iventoryList');
- Route::post('/inventory/detail', 'Api\InventoryController@getDetail');
- Route::post('/inventory/delete', 'Api\InventoryController@deleteItem');
- /*-------------------------------------------------------------------------
- | Setting
- |-------------------------------------------------------------------------*/
- Route::get('/setting/memo/list', 'Api\SettingController@memoList');
- Route::post('/setting/memo/confirm', 'Api\SettingController@confirmMemo');
- Route::post('/setting/delete/memo', 'Api\SettingController@deleteMemo');
- Route::get('/setting/template/{_id}/{status}/list', 'Api\SettingController@templateList');
- Route::post('/setting/template/confirm', 'Api\SettingController@confirmTemplate');
- Route::post('/setting/template/send-email', 'Api\SettingController@sendNotice');
- Route::post('/setting/template/delete', 'Api\SettingController@deleteTemplate');
-
- Route::get('/setting/api-key/list', 'Api\SettingController@apiKeyList');
- Route::post('/delete-api-key', 'Api\SettingController@deleteApiKey');
- Route::get('/setting/api-integration/list', 'Api\SettingController@apiKeyIntegrationList');
- /*-------------------------------------------------------------------------
- | Tracking Map
- |-------------------------------------------------------------------------*/
- Route::get('/track/staff/list', 'Api\TrackMapController@getStaffList');
- Route::get('/track/coordinates/{id}/list', 'Api\TrackMapController@getNearestLocation');
- Route::post('/update/emergency/status', 'Api\TrackMapController@postEmergency');
- Route::post('/update/normal/status', 'Api\TrackMapController@returnNormal');
- /*-------------------------------------------------------------------------
- | Cron Job
- |-------------------------------------------------------------------------*/
- Route::get('/cron/job/update-compound-price', 'Api\JobController@JobMemo');
- Route::get('/cron/job/send-notice-letter', 'Api\JobController@sendLetterNotice');
- /*-------------------------------------------------------------------------
- | Payment
- |-------------------------------------------------------------------------*/
- Route::post('/compound/make/payment', 'PaymentController@makeMobilePayment');
- Route::post('/payment/compound', 'Api\PaymentController@paymentCompound');
- Route::post('/update/payment/compound', 'Api\PaymentController@updatePayment');
- Route::get('/report/payment/list', 'Api\PaymentController@reportpaymentList');
- /*-------------------------------------------------------------------------
- | Notification
- |-------------------------------------------------------------------------*/
- Route::post('/update/firebase/token', 'NotificationController@saveToken');
- Route::post('/push/notification', 'NotificationController@sendNotification');
- Route::post('/mobile/notification/list', 'NotificationController@getNotificationMobile');
- Route::post('/web/notification/list', 'NotificationController@getNotificationWeb');
- Route::post('/delete/notification', 'NotificationController@deleteNotification');
- /*-------------------------------------------------------------------------
- | Enforcer Task/Job
- |-------------------------------------------------------------------------*/
- Route::post('/enforcer/compound/list', 'Api\CompoundController@confidentialFileList');
- Route::post('/enforcer/inventory/list', 'Api\InventoryController@iventoryListMobile');
- Route::post('/enforcer/add/inventory', 'Api\InventoryController@addItemMobile');
- Route::post('/enforcer/add/inventory/picture', 'Api\InventoryController@addItemPictureMobile');
- Route::post('/enforcer/inventory/scan/barcode', 'Api\InventoryController@getDetailMobile');
- Route::post('/enforcer/delete/inventory', 'Api\InventoryController@deleteItemMobile');
- /*-------------------------------------------------------------------------
- | Statistics
- |-------------------------------------------------------------------------*/
- Route::get('/report/compound/list/{start}/{end}', 'Api\StatisticController@reportCompoundList');
- /*-------------------------------------------------------------------------
- | API Integration
- |-------------------------------------------------------------------------*/
- Route::post('/search/compound', 'Api\RestfulapiController@viewCompoundPersonal');
- Route::post('/update/compound/payment', 'Api\RestfulapiController@updatePaymentIntegrasi');
-
- Route::get('/store/external/summon', 'Api\ImportDataController@storeExternalCompound');
- });
|