Skip to content

Commit

Permalink
Add auth middleware to restore url.
Browse files Browse the repository at this point in the history
  • Loading branch information
Haries Nur Ikhwan committed Aug 16, 2018
1 parent 7ab2b47 commit 33f1d84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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');

0 comments on commit 33f1d84

Please sign in to comment.