Changeset 0a1fb54 for routes/web.php


Ignore:
Timestamp:
11/23/21 22:01:52 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
master
Children:
dbc5976
Parents:
4d73966
Message:

bug fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • routes/web.php

    r4d73966 r0a1fb54  
    2727Route::group(['prefix' => 'auth'], function () {
    2828
    29     Route::get('/login', "Auth\LoginController@showLogin")->name("auth.loginShow");
     29    Route::get('/login', "Auth\LoginController@showLogin")->name("auth.showLogin");
    3030    Route::get('/verify-login/{id}/{token}', "Auth\VerifyLoginController@index")->middleware("CheckVerifyToken")->name("verify-login.index");
    3131    Route::post('/verify-login/{id}/{token}', "Auth\VerifyLoginController@verify")->name("verify-login");
     
    4141    });
    4242
     43    Route::group(['middleware' => "checkVerifyNewEmail"], function () {
     44        Route::get('/verify/{id}/{token}', "Auth\VerifyNewEmailController@create")->name("auth.verifyShow");
     45        Route::post('/verify/{id}/{token}', "Auth\VerifyNewEmailController@verify")->name("auth.verify");
     46    });
    4347});
    4448
     
    8488    // Departments manage
    8589    Route::group(['middleware' => 'permission:manage_all_departments'], function () {
    86         Route::get("/departments/create", "Dashboard\DepartmentsController@create")->name("dashboard.departments.create");
    87         Route::post("/departments/store", "Dashboard\DepartmentsController@store")->name("dashboard.departments.store");
    88         Route::get("/departments/{id}/edit", "Dashboard\DepartmentsController@editShow")->name("dashboard.departments.editShow");
    89         Route::patch("/departments/{id}/edit", "Dashboard\DepartmentsController@edit")->name("dashboard.departments.edit");
     90       Route::post("/departments/store", "Dashboard\DepartmentsController@store")->name("dashboard.departments.store");
     91       Route::patch("/departments/{id}/edit", "Dashboard\DepartmentsController@edit")->name("dashboard.departments.edit");
    9092     });
    9193
Note: See TracChangeset for help on using the changeset viewer.