forked from darryldecode/laravel-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
web.php
36 lines (30 loc) · 1.29 KB
/
web.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?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!
|
*/
Route::get('/','Front\\HomeController@index')->name('front.home');
Route::get('files/{id}/preview','Front\\FileController@filePreview')->name('front.file.preview');
Route::get('files/{id}/download','Front\\FileController@fileDownload')->name('front.file.download');
Auth::routes();
// NOTE:
// remove the demo middleware before you start on a project, this middleware if only
// for demo purpose to prevent viewers to modify data on a live demo site
// admin
Route::prefix('admin')->namespace('Admin')->middleware(['auth','demo'])->group(function()
{
// single page
Route::get('/', 'SinglePageController@displaySPA')->name('admin.spa');
// resource routes
Route::resource('users','UserController');
Route::resource('groups','GroupController');
Route::resource('permissions','PermissionController');
Route::resource('files','FileController');
Route::resource('file-groups','FileGroupController');
});