39 lines
1.4 KiB
PHP
39 lines
1.4 KiB
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use App\Http\Controllers\Api\UserInformationHistoryController;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| API Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| API Key認証が必要なAPIルート
|
|
| Header: X-API-Key
|
|
|
|
|
| 認証仕様の詳細は api.doc/api_authentication.md を参照
|
|
|
|
|
*/
|
|
|
|
Route::middleware(['api.key'])->group(function () {
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| API 7, 8, 9 - ユーザーインフォメーション履歴
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| GET /api/user-information-history - 一覧取得
|
|
| GET /api/user-information-history/{id} - 単一取得
|
|
| POST /api/user-information-history - 新規追加
|
|
| PUT /api/user-information-history/{id} - 更新
|
|
|
|
|
*/
|
|
Route::get('user-information-history', [UserInformationHistoryController::class, 'index']);
|
|
Route::get('user-information-history/{id}', [UserInformationHistoryController::class, 'show'])
|
|
->where('id', '[0-9]+');
|
|
Route::post('user-information-history', [UserInformationHistoryController::class, 'store']);
|
|
Route::put('user-information-history/{id}', [UserInformationHistoryController::class, 'update'])
|
|
->where('id', '[0-9]+');
|
|
|
|
});
|