Projekt

Obecné

Profil

Stáhnout (1.67 KB) Statistiky
| Větev: | Tag: | Revize:
1
<?php
2

    
3
use Illuminate\Support\Facades\Route;
4

    
5
/*
6
|--------------------------------------------------------------------------
7
| Web Routes
8
|--------------------------------------------------------------------------
9
|
10
| Here is where you can register web routes for your application. These
11
| routes are loaded by the RouteServiceProvider within a group which
12
| contains the "web" middleware group. Now create something great!
13
|
14
*/
15

    
16
Route::get('/', 'PagesController@index');
17

    
18
Route::get('/verify/{id}', 'VerifyRegisterController@verifyUser');
19
Route::get('/artefact', 'ArtefactController@default');
20
Route::get('/artefact/{id}', 'ArtefactController@view');
21
Route::get('/artefact/like/{id}', 'ArtefactController@like');
22
Route::get('/artefact/unlike/{id}', 'ArtefactController@unlike');
23
Route::get('/category/{id}', 'ArtefactController@showCategory');
24
Route::get('/category/multi/{id}', 'ArtefactController@showCategories');
25
Route::get('/detail/like/{id}', 'DetailsController@like');
26
Route::get('/detail/unlike/{id}', 'DetailsController@unlike');
27
Route::resource('/detail', 'DetailsController', array('only' => array('index', 'show')));
28
Route::resource('/categories', 'CategoriesController', array('only' => array('index')));
29
Route::resource('/favartefacts', 'FavoriteArtefactsController', array('only' => array('index', 'show', 'store')));
30
Route::resource('/charts', 'ChartsController', array('only' => array('index', 'show', 'store')));
31
Route::get('/favmetadata', 'FavoriteMetadataController@index');
32
Route::get('/favmetadata/unlike/{id}', 'FavoriteMetadataController@unlike');
33
Route::get('/artefact/{id}', 'ArtefactController@view');
34

    
35

    
36
Auth::routes();
37

    
38
Route::get('/home', 'HomeController@index')->name('home');
(4-4/4)