2020-07-01 08:57:45 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| 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!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2020-07-01 14:06:40 +00:00
|
|
|
Route::get('/', "UrlShortenerController@viewHome");
|
2020-07-01 08:57:45 +00:00
|
|
|
Route::post('/s/g', "UrlShortenerController@createShortURL");
|
|
|
|
Route::get('/s/{pathGenerated}', "UrlShortenerController@openDestination");
|
|
|
|
Route::post('/s/{pathGenerated}/open/protection', "UrlShortenerController@openProtectedDestination");
|
2020-07-01 14:06:40 +00:00
|
|
|
|
|
|
|
Route::middleware('auth.web')->group(function () {
|
|
|
|
Route::get('/list', "UrlShortenerController@viewList");
|
|
|
|
|
|
|
|
Route::post('/web/change/password', "SecurityController@formChangePassword");
|
|
|
|
});
|
|
|
|
|
|
|
|
Route::post('/web/login', "SecurityController@formLogin");
|
|
|
|
Route::post('/web/forgot', "SecurityController@formForgotPassword");
|
|
|
|
Route::post('/web/register', "SecurityController@formRegister");
|
|
|
|
Route::get('/web/logout', "SecurityController@formLogout");
|
|
|
|
|