Changeset View
Changeset View
Standalone View
Standalone View
src/routes/api.php
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | [ | ||||
'prefix' => 'auth' | 'prefix' => 'auth' | ||||
], | ], | ||||
function () { | function () { | ||||
Route::post('password-policy/check', [API\PasswordPolicyController::class, 'check']); | Route::post('password-policy/check', [API\PasswordPolicyController::class, 'check']); | ||||
Route::post('password-reset/init', [API\PasswordResetController::class, 'init']); | Route::post('password-reset/init', [API\PasswordResetController::class, 'init']); | ||||
Route::post('password-reset/verify', [API\PasswordResetController::class, 'verify']); | Route::post('password-reset/verify', [API\PasswordResetController::class, 'verify']); | ||||
Route::post('password-reset', [API\PasswordResetController::class, 'reset']); | Route::post('password-reset', [API\PasswordResetController::class, 'reset']); | ||||
} | |||||
); | |||||
if (\config('app.with_signup')) { | |||||
Route::group( | |||||
[ | |||||
'domain' => \config('app.website_domain'), | |||||
'middleware' => 'api', | |||||
'prefix' => 'auth' | |||||
], | |||||
function () { | |||||
Route::get('signup/domains', [API\SignupController::class, 'domains']); | Route::get('signup/domains', [API\SignupController::class, 'domains']); | ||||
Route::post('signup/init', [API\SignupController::class, 'init']); | Route::post('signup/init', [API\SignupController::class, 'init']); | ||||
Route::get('signup/invitations/{id}', [API\SignupController::class, 'invitation']); | Route::get('signup/invitations/{id}', [API\SignupController::class, 'invitation']); | ||||
Route::get('signup/plans', [API\SignupController::class, 'plans']); | Route::get('signup/plans', [API\SignupController::class, 'plans']); | ||||
Route::post('signup/validate', [API\SignupController::class, 'signupValidate']); | Route::post('signup/validate', [API\SignupController::class, 'signupValidate']); | ||||
Route::post('signup/verify', [API\SignupController::class, 'verify']); | Route::post('signup/verify', [API\SignupController::class, 'verify']); | ||||
Route::post('signup', [API\SignupController::class, 'signup']); | Route::post('signup', [API\SignupController::class, 'signup']); | ||||
} | } | ||||
); | ); | ||||
} | |||||
Route::group( | Route::group( | ||||
[ | [ | ||||
'domain' => \config('app.website_domain'), | 'domain' => \config('app.website_domain'), | ||||
'middleware' => ['auth:api', 'scope:mfa,api'], | 'middleware' => ['auth:api', 'scope:mfa,api'], | ||||
'prefix' => 'v4' | 'prefix' => 'v4' | ||||
], | ], | ||||
function () { | function () { | ||||
▲ Show 20 Lines • Show All 218 Lines • Show Last 20 Lines |