Skip to content

Commit

Permalink
Change default route('myinfo.singpass') to post method
Browse files Browse the repository at this point in the history
  • Loading branch information
ziming committed Jun 10, 2019
1 parent bdca3bb commit 7760a74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ use Ziming\LaravelMyinfoSg\Http\Controllers\CallAuthoriseApiController;
use Ziming\LaravelMyinfoSg\Http\Controllers\GetMyinfoPersonDataController;
use Illuminate\Support\Facades\Route;

Route::get(config('/go-singpass'), CallAuthoriseApiController::class)
Route::post(config('/go-singpass'), CallAuthoriseApiController::class)
->name('myinfo.singpass')
->middleware(['auth']); // You may add your middlewares here

Expand Down
2 changes: 1 addition & 1 deletion src/LaravelMyinfoSgServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function boot()
return;
}

Route::get(config('laravel-myinfo-sg.call_authorise_api_uri'), CallAuthoriseApiController::class)->name('myinfo.singpass');
Route::post(config('laravel-myinfo-sg.call_authorise_api_uri'), CallAuthoriseApiController::class)->name('myinfo.singpass');
Route::post(config('laravel-myinfo-sg.get_myinfo_person_data_uri'), GetMyinfoPersonDataController::class)->name('myinfo.person');

}
Expand Down

0 comments on commit 7760a74

Please sign in to comment.