1 |
5d28dbf4
|
Marek Lovčí
|
<?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 |
e8ef87aa
|
Adam Mištera
|
Route::get('/', 'PagesController@index');
|
17 |
74e290c2
|
Adam Mištera
|
|
18 |
|
|
Route::get('/artefact', 'ArtefactController@default');
|
19 |
10222730
|
Adam Mištera
|
Route::get('/artefact/{id}', 'ArtefactController@view');
|
20 |
b4965c0b
|
rizir01
|
Route::post('/artefact/like/{id}', 'ArtefactController@like');
|
21 |
|
|
Route::post('/artefact/unlike/{id}', 'ArtefactController@unlike');
|
22 |
fb354d59
|
rizir01
|
Route::get('/category/{id}', 'ArtefactController@showCategory');
|
23 |
1bcdcb05
|
Adam Mištera
|
Route::get('/detail/like/{id}', 'DetailsController@like');
|
24 |
|
|
Route::get('/detail/unlike/{id}', 'DetailsController@unlike');
|
25 |
c66c7237
|
rizir01
|
Route::resource('/detail', 'DetailsController', array('only' => array('index', 'show')));
|
26 |
120e7c58
|
rizir01
|
Route::resource('/categories', 'CategoriesController', array('only' => array('index')));
|
27 |
fb354d59
|
rizir01
|
Route::resource('/favartefacts', 'FavoriteArtefactsController', array('only' => array('index', 'show', 'store')));
|
28 |
d7feebff
|
zabran
|
Route::resource('/charts', 'ChartsController', array('only' => array('index', 'show', 'store')));
|
29 |
09795926
|
Adam Mištera
|
Route::get('/favmetadata', 'FavoriteMetadataController@index');
|
30 |
26e128a8
|
Adam Mištera
|
Route::get('/favmetadata/unlike/{id}', 'FavoriteMetadataController@unlike');
|
31 |
c66c7237
|
rizir01
|
|
32 |
fb354d59
|
rizir01
|
|
33 |
21570473
|
Adam Mištera
|
Auth::routes();
|
34 |
c66c7237
|
rizir01
|
|
35 |
21570473
|
Adam Mištera
|
Route::get('/home', 'HomeController@index')->name('home');
|