Files
wticreatorstudio/Modules/ReferralSystem/Routes/web.php
T
2024-02-12 22:54:20 -05:00

27 lines
1016 B
PHP

<?php
use Modules\ReferralSystem\Http\Controllers\ReferralSystemController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
Route::prefix('referralsystem')->group(function() {
Route::get('/',function(){
new \Modules\ReferralSystem\Services\AugmentationService();
dd('Augmentations Successfully Run!');
});
});
Route::get('/referrals', [ReferralSystemController::class, 'index'])->name('referrals.index');
Route::get('/client/register/{referralcode}', [ReferralSystemController::class, 'clientRegister'])->name('client.register');
Route::get('/staff/register/{referralcode}', [ReferralSystemController::class, 'staffRegister'])->name('staff.register');