Gunawan19621 1 year ago
parent
commit
9f28a4b771
  1. 2
      app/Http/Controllers/API/v1/TipePetiApi/TipePetiApiController.php
  2. 6
      config/app.php
  3. 3
      routes/api.php

2
app/Http/Controllers/API/v1/TipePetiApi/TipePetiApiController.php

@ -14,7 +14,7 @@ class TipePetiApiController extends Controller
return ResponseFormatter::success([ return ResponseFormatter::success([
'status' => true, 'status' => true,
'message' => 'Data warehouse berhasil diambil', 'message' => 'Data Tipe Peti berhasil diambil',
'tipe_peti' => $tipePeti 'tipe_peti' => $tipePeti
]); ]);
} }

6
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',
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------

3
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-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-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) { Route::middleware('auth:sanctum')->get('/user', function (Request $request) {

Loading…
Cancel
Save