-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathweb.php
65 lines (52 loc) · 1.53 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\View;
Route::get('/', function () {
return view('welcome');
})->name('home');
Route::get('/packages', function () {
return view('packages');
})->name('packages');
Route::get('/components', function () {
return view('components');
})->name('components');
Route::get('/themes', function () {
return view('themes');
})->name('themes');
Route::get('/icons', function () {
return view('icons');
})->name('icons');
Route::get('/license', function () {
return view('license');
})->name('license');
Route::get('/demo', function () {
return view('demo');
})->name('demo');
Route::get('/docs', function () {
return view('docs');
})->name('docs');
Route::get('/docsingle', function () {
return view('doc-single');
})->name('docsingle');
Route::get('/support', function () {
return view('support');
})->name('support');
$custom_parts = config('moox.custom_views');
if (is_array($custom_parts)) {
foreach ($custom_parts as $custom_part) {
$custom_view = 'custom.'.$custom_part;
$custom_route = 'custom/'.$custom_part;
if (View::exists($custom_view)) {
Route::view($custom_route, $custom_view);
}
}
}
$custom_parts = explode(', ', config('moox.custom_routes'));
if (is_array($custom_parts)) {
foreach ($custom_parts as $custom_part) {
$tui_routes = base_path('routes/custom_'.$custom_part.'.php');
if (file_exists($tui_routes)) {
include $tui_routes;
}
}
}