Changeset 1c25bcf for routes/web.php


Ignore:
Timestamp:
10/25/21 21:49:53 (3 years ago)
Author:
Berat Kjufliju <kufliju@…>
Branches:
develop, master
Children:
e756bd9
Parents:
05e57e2
Message:

added 2fa, bug fixes, edited blades

File:
1 edited

Legend:

Unmodified
Added
Removed
  • routes/web.php

    r05e57e2 r1c25bcf  
    2525// Auth Routes
    2626////////////////////
    27 Route::prefix('auth')->group(function () {
     27Route::group(['prefix' => 'auth'], function () {
    2828
    2929    Route::get('/login', "Auth\LoginController@showLogin")->name("auth.loginShow");
     30    Route::get('/verify-login/{id}/{token}', "Auth\VerifyLoginController@index")->middleware("CheckVerifyToken")->name("verify-login.index");
     31    Route::post('/verify-login/{id}/{token}', "Auth\VerifyLoginController@verify")->name("verify-login");
    3032    Route::post('/login', "Auth\LoginController@login")->name("auth.login");
    3133    Route::post('/logout', "Auth\LoginController@logout")->name("auth.logout");
     
    3739        Route::get('/create-password/{id}/{token}', "Auth\CreatePasswordController@showCreatePassword")->name("auth.create-password-show");
    3840        Route::post('/create-password/{id}/{token}', "Auth\CreatePasswordController@createPassword")->name("auth.create-password");
    39     });
    40 
    41     Route::group(['middleware' => "checkVerifyNewEmail"], function () {
    42         Route::get('/verify/{id}/{token}', "Auth\VerifyNewEmailController@create")->name("auth.verifyShow");
    43         Route::post('/verify/{id}/{token}', "Auth\VerifyNewEmailController@verify")->name("auth.verify");
    4441    });
    4542
     
    7875        Route::patch("/users/{id}/unblock", "Dashboard\UsersController@unblock")->name("dashboard.users.unblock");
    7976        Route::delete("/users/{id}/destroy", "Dashboard\UsersController@destroy")->name("dashboard.users.destroy");
    80         Route::get('users/export', 'Dashboard\ExportExcelController@ExportUsers')->name("dashboard.users.export");
    8177    });
    8278
     
    131127        Route::get('folders/export', 'Dashboard\ExportExcelController@ExportFolders')->name("dashboard.folders.export");
    132128        Route::get('departments/export', 'Dashboard\ExportExcelController@ExportDepartments')->name("dashboard.departments.export");
     129        Route::get('users/export', 'Dashboard\ExportExcelController@ExportUsers')->name("dashboard.users.export");
    133130    });
    134131
Note: See TracChangeset for help on using the changeset viewer.