mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
528c99f655
* Implement CoreUI Interface * Core UI Navigation wire frame * UI - Fix sidebar nav - add Invoice Ninja Logo * Create layout using CoreUI admin template * Login UI, Database seeds
57 lines
2.0 KiB
PHP
57 lines
2.0 KiB
PHP
<?php
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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!
|
|
|
|
|
*/
|
|
|
|
|
|
// Authentication Routes Laravel Defaults... replaces //Auth::routes();
|
|
Route::get('login', 'Auth\LoginController@showLoginForm')->name('login');
|
|
Route::post('login', 'Auth\LoginController@login');
|
|
Route::post('logout', 'Auth\LoginController@logout')->name('logout');
|
|
|
|
// Password Reset Routes...
|
|
Route::get('password/reset', 'Auth\ForgotPasswordController@showLinkRequestForm')->name('password.request');
|
|
Route::post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail')->name('password.email');
|
|
Route::get('password/reset/{token}', 'Auth\ResetPasswordController@showResetForm')->name('password.reset');
|
|
Route::post('password/reset', 'Auth\ResetPasswordController@reset')->name('password.update');
|
|
|
|
/*
|
|
Open Routes
|
|
*/
|
|
//Route::get('/', 'HomeController@index')->name('default');
|
|
Route::redirect('/', '/login', 301);
|
|
|
|
Route::get('/signup', 'HomeController@signup')->name('signup');
|
|
|
|
Route::get('/contact/login', 'Auth\ContactLoginController@showLoginForm')->name('contact.login');
|
|
Route::post('/contact/login', 'Auth\ContactLoginController@login')->name('contact.login.submit');
|
|
|
|
|
|
/*
|
|
Authenticated User Routes
|
|
*/
|
|
Route::group(['middleware' => ['auth:user']], function () {
|
|
|
|
Route::get('/home', 'HomeController@user')->name('user.dashboard');
|
|
Route::get('/logout', 'Auth\LoginController@logout')->name('user.logout');
|
|
|
|
});
|
|
|
|
|
|
/*
|
|
Authenticated Contact Routes
|
|
*/
|
|
Route::group(['prefix' => 'contact', 'middleware' => 'auth:contact'], function () {
|
|
|
|
Route::get('/', 'ContactController@index')->name('contact.dashboard');
|
|
Route::get('logout/', 'Auth\ContactLoginController@logout')->name('contact.logout');
|
|
|
|
});
|