Skip to content

Commit a1f4675

Browse files
author
Emmanuel Obua
committed
fixed missing controller name
1 parent bd3c11d commit a1f4675

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

src/Controllers/UgLocaleController.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,6 @@ public function getVillagesByParish(Request $request): JsonResponse
134134
]);
135135
}
136136

137-
138-
// ============================================================
139-
// "Add" Endpoints for Creating New Location Records
140-
// ============================================================
141-
142137
/**
143138
* Add a new region if it doesn't exist.
144139
*

src/routes/ugLocaleRoutes.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
*
9090
* @return \Illuminate\Http\JsonResponse
9191
*/
92-
Route::post('/regions', [LocationController::class, 'addRegion'])
92+
Route::post('/regions', [UgLocaleController::class, 'addRegion'])
9393
->name('locations.add_region');
9494

9595
/**
@@ -102,7 +102,7 @@
102102
*
103103
* @return \Illuminate\Http\JsonResponse
104104
*/
105-
Route::post('/districts', [LocationController::class, 'addDistrict'])
105+
Route::post('/districts', [UgLocaleController::class, 'addDistrict'])
106106
->name('locations.add_district');
107107

108108
/**
@@ -115,7 +115,7 @@
115115
*
116116
* @return \Illuminate\Http\JsonResponse
117117
*/
118-
Route::post('/counties', [LocationController::class, 'addCounty'])
118+
Route::post('/counties', [UgLocaleController::class, 'addCounty'])
119119
->name('locations.add_county');
120120

121121
/**
@@ -128,7 +128,7 @@
128128
*
129129
* @return \Illuminate\Http\JsonResponse
130130
*/
131-
Route::post('/sub-counties', [LocationController::class, 'addSubCounty'])
131+
Route::post('/sub-counties', [UgLocaleController::class, 'addSubCounty'])
132132
->name('locations.add_sub_county');
133133

134134
/**
@@ -141,7 +141,7 @@
141141
*
142142
* @return \Illuminate\Http\JsonResponse
143143
*/
144-
Route::post('/parishes', [LocationController::class, 'addParish'])
144+
Route::post('/parishes', [UgLocaleController::class, 'addParish'])
145145
->name('locations.add_parish');
146146

147147
/**
@@ -154,6 +154,6 @@
154154
*
155155
* @return \Illuminate\Http\JsonResponse
156156
*/
157-
Route::post('/villages', [LocationController::class, 'addVillage'])
157+
Route::post('/villages', [UgLocaleController::class, 'addVillage'])
158158
->name('locations.add_village');
159159
});

0 commit comments

Comments
 (0)