-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.php
executable file
·74 lines (64 loc) · 1.54 KB
/
routes.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
66
67
68
69
70
71
72
73
74
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/
/**
* API route group
* @link api/*
* @example api/user/
*/
Route::group(['prefix' => 'api/v1'], function()
{
/**
* @link /api/auth/*
*/
Route::controller('auth', 'AuthController');
/**
* @link /api/user/*
*/
Route::resource('user', 'UserController');
/**
* @link /api/slideshow/*
*/
Route::resource('slideshow', 'SlideshowController');
Route::controller('slideshow', 'SlideshowExtController');
/**
* @link /api/news/*
*/
Route::controller('news', 'NewsExtController');
Route::resource('news', 'NewsController');
/**
* @link /api/event/*
*/Route::controller('event', 'EventExtController');
Route::resource('event', 'EventController');
/**
* @link /api/album/*
*/
Route::controller('album', 'AlbumExtController');
Route::resource('album', 'AlbumController');
/**
*
*/
Route::controller('milestone', 'MilestoneExtController');
Route::resource('milestone', 'MilestoneController');
Route::resource('milestone-era', 'MilestoneEraController');
});
/**
* Dashboard view
*
* @link /dashboard
*/
Route::get('/dashboard', 'HomeController@dashboard');
/**
* Default view
*
* @link /
*/
Route::get('/', 'HomeController@index');