From e2072bf5536ae6dfc1f8acc0f2e5397b5365c553 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 26 Nov 2023 22:20:25 +0700 Subject: [PATCH] Update Api TipePeti dan routeApi --- .../API/v1/TipePetiApi/TipePetiApiController.php | 2 +- config/app.php | 6 +++--- routes/api.php | 3 +++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/API/v1/TipePetiApi/TipePetiApiController.php b/app/Http/Controllers/API/v1/TipePetiApi/TipePetiApiController.php index 6884957..c42fd63 100644 --- a/app/Http/Controllers/API/v1/TipePetiApi/TipePetiApiController.php +++ b/app/Http/Controllers/API/v1/TipePetiApi/TipePetiApiController.php @@ -14,7 +14,7 @@ class TipePetiApiController extends Controller return ResponseFormatter::success([ 'status' => true, - 'message' => 'Data warehouse berhasil diambil', + 'message' => 'Data Tipe Peti berhasil diambil', 'tipe_peti' => $tipePeti ]); } diff --git a/config/app.php b/config/app.php index 9a47129..659ee64 100644 --- a/config/app.php +++ b/config/app.php @@ -83,7 +83,7 @@ return [ | */ - 'locale' => 'en', + 'locale' => 'id', /* |-------------------------------------------------------------------------- @@ -96,7 +96,7 @@ return [ | */ - 'fallback_locale' => 'en', + 'fallback_locale' => 'id', /* |-------------------------------------------------------------------------- @@ -109,7 +109,7 @@ return [ | */ - 'faker_locale' => 'en_US', + 'faker_locale' => 'id_ID', /* |-------------------------------------------------------------------------- diff --git a/routes/api.php b/routes/api.php index 3b4f57c..6005f77 100644 --- a/routes/api.php +++ b/routes/api.php @@ -47,6 +47,9 @@ Route::prefix('v1')->group(function () { Route::get('/m-type-peti', [App\Http\Controllers\API\v1\TipePetiApi\TipePetiApiController::class, 'index'])->name('type-peti'); Route::get('/m-kondisi-peti', [App\Http\Controllers\API\v1\KondisiPetiApi\KondisiPetiApiController::class, 'index'])->name('kondisi-peti'); + + Route::get('/m-transfer-peti', [App\Http\Controllers\API\v1\TransferApi\TransferApiController::class, 'index'])->name('transfer-peti'); + Route::post('/m-transfer-peti/store', [App\Http\Controllers\API\v1\TransferApi\TransferApiController::class, 'store'])->name('transfer-peti.store'); }); Route::middleware('auth:sanctum')->get('/user', function (Request $request) {