diff --git a/routes/web.php b/routes/web.php index ff0d67a..8ecde99 100644 --- a/routes/web.php +++ b/routes/web.php @@ -18,6 +18,7 @@ Auth::routes(); Route::resource('generate', 'GenerateUrlController', ['parameters' => ['generate' => 'url'], 'middleware' => 'auth']); +Route::get('/generate/{hashid}/restore', 'RestoreUrlController@restore', ['middleware' => 'auth'])->name('generate.restore'); Route::group(['domain' => 'hi.jomwasap.my'], function () { Route::get('{alias}', 'VisitUrlController@go')->middleware('CheckLeadCapture'); @@ -26,4 +27,3 @@ Route::get('/go/{alias}', 'VisitUrlController@go')->middleware('CheckLeadCapture'); Route::post('/lead', 'LeadController@store')->name('lead'); -Route::get('/generate/{hashid}/restore', 'RestoreUrlController@restore')->name('generate.restore');