-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb.php
40 lines (30 loc) · 1.26 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
<?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 root
Route::get('/', 'HomeController@index');
//login route
Route::get('/login', 'HomeController@login');
//group of routes for our adminController functions
Route::group(
['middleware' => ['admin']],
function(){
Route::get('/dashboard', 'CalendarController@index');
Route::post('/calendar/create', 'CalendarController@createCalendar');
Route::get('/event/create', 'EventController@createEvent');
Route::post('/event/create', 'EventController@doCreateEvent');
Route::post('/event/create/profile/{id}', 'EventController@profileCreateEvent');
Route::get('/calendar/sync', 'CalendarController@syncCalendar');
Route::post('/calendar/sync', 'AdminController@doSyncCalendar');
Route::get('/logout', 'HomeController@logout');
//profile route
Route::get('/profile/{id}', 'UserController@profile');
});