From ea2e16a5b3cbf06f517e7de8c23820f3eb195a8f Mon Sep 17 00:00:00 2001 From: Kwesi Banson Jnr Date: Fri, 20 Feb 2026 05:50:26 +0000 Subject: [PATCH] added a fix for the SSL issues on the assets --- info.md | 51 +------------------ .../Http/Controllers/PermitsController.php | 4 +- php_code/app/Http/Middleware/TrustProxies.php | 22 ++++++++ php_code/app/Providers/AppServiceProvider.php | 14 ++--- php_code/resources/views/admin/home.blade.php | 4 +- .../views/admin/partials/view-user.blade.php | 3 +- .../resources/views/permits/show.blade.php | 2 +- 7 files changed, 33 insertions(+), 67 deletions(-) create mode 100644 php_code/app/Http/Middleware/TrustProxies.php diff --git a/info.md b/info.md index ec6c8140..229fb154 100644 --- a/info.md +++ b/info.md @@ -10,35 +10,7 @@ ## API Testing Tool - https://restful-api.dev/ - - -curl --location 'http://41.66.197.28:8831/api/auth/auth_user.php' \ ---header 'Content-Type: application/json' \ ---data '{"user":"assiamah","pass":"win","api_token":"1c46538c712e9b5b"}' - - - -curl --location 'https://api.lupmis4luspa.org/api/auth/auth_user.php' \ ---header 'Content-Type: application/json' \ ---data '{"user":"assiamah","pass":"win","api_token":"1c46538c712e9b5b"}' - - -curl -X 'POST' \ - 'http://41.66.197.28:8831/api/user_mgt/get_all_usr_permission.php' \ - -H 'accept: application/json' \ - -H 'Content-Type: application/json' \ - -d '{ - "api_token": "1c46538c712e9b5b" -}' - -curl -X 'POST' \ - 'http://41.66.197.28:8831/api/menu/get_all_menus.php' \ - -H 'accept: application/json' \ - -H 'Content-Type: application/json' \ - -d '{ - "user_id": "string", - "api_token": "1c46538c712e9b5b" -}' +git remote add https://gitea.lupmis4luspa.org/kwesigitea/main-backend.git title - add N/A @@ -59,27 +31,6 @@ networks: external: true -add -coordinates -agents - -add gh post gps -street name -property address -days for application starts application number is generated -other requirements will be considered before payment -processing fee is non refundable -specific statuses as dropdown -add additional comments - -Add Group to the dropdown for Applicant Type -national ID should be optional -remove consultant and use only agent -change applicant name to a textarea -nationality should be a dropdown -add N/A to the title field -Project Location/Address change it to Project Location/Address/Ghana PostGPS -fields under Land & Parcel Details should be optional curl -X 'POST' \ 'https://api.lupmis4luspa.org/api/user_mgt/get_district_by_region_id.php' \ diff --git a/php_code/app/Http/Controllers/PermitsController.php b/php_code/app/Http/Controllers/PermitsController.php index f18d07d6..06ca6ac5 100644 --- a/php_code/app/Http/Controllers/PermitsController.php +++ b/php_code/app/Http/Controllers/PermitsController.php @@ -33,7 +33,7 @@ class PermitsController extends Controller ]); $result = ApiCalls::CurlPost($data, $url); $result = json_decode($result, true); - dump($result); + // dump($result); $data = [ 'page_title' => 'Permits Page', @@ -51,7 +51,7 @@ class PermitsController extends Controller ]); $result = ApiCalls::CurlPost($data, $url); $result = json_decode($result, true); - dump($result); + // dump($result['data']); $data = [ 'page_title' => 'Permits Details', 'permit_arr' => $result['data'][0], diff --git a/php_code/app/Http/Middleware/TrustProxies.php b/php_code/app/Http/Middleware/TrustProxies.php new file mode 100644 index 00000000..3d64edb2 --- /dev/null +++ b/php_code/app/Http/Middleware/TrustProxies.php @@ -0,0 +1,22 @@ +" name="userId"> - view icon + edit icon @@ -77,8 +77,6 @@ @endsection @section('page-js') - - diff --git a/php_code/resources/views/admin/partials/view-user.blade.php b/php_code/resources/views/admin/partials/view-user.blade.php index 28d5411d..a10350a6 100644 --- a/php_code/resources/views/admin/partials/view-user.blade.php +++ b/php_code/resources/views/admin/partials/view-user.blade.php @@ -14,7 +14,8 @@
-

One Fine Body

+

User Details

+ diff --git a/php_code/resources/views/permits/show.blade.php b/php_code/resources/views/permits/show.blade.php index a2a9d988..7304b745 100644 --- a/php_code/resources/views/permits/show.blade.php +++ b/php_code/resources/views/permits/show.blade.php @@ -64,7 +64,7 @@
Project Description
-

Proposed Single Storey Residential Facility

+

Name