9 | It's a breeze. Simply tell Laravel the URIs it should respond to |
9 | It's a breeze. Simply tell Laravel the URIs it should respond to |
10 | and give it the controller to call when that URI is requested. |
10 | and give it the controller to call when that URI is requested. |
11 | |
11 | |
12 */ |
12 */ |
13 |
13 |
14 Route::get('/', 'WelcomeController@index'); |
14 Route::group(['middleware' => ['web']], function () { |
15 |
15 |
16 Route::get('home', 'HomeController@index'); |
16 Route::get('/', 'WelcomeController@index'); |
17 |
17 |
18 //Route::get('bo/docs/docDetailClient', 'Bo\DocumentListController@showClient'); |
18 Route::get('home', 'HomeController@index'); |
19 Route::resource('bo/docs', 'Bo\DocumentListController'); |
19 |
20 Route::controller('bo/docs', 'Bo\DocumentListController', [ |
20 //Route::get('bo/docs/docDetailClient', 'Bo\DocumentListController@showClient'); |
21 'getClient' => 'bo.docs.client' |
21 Route::resource('bo/docs', 'Bo\DocumentListController'); |
22 ]); |
22 Route::controller('bo/docs', 'Bo\DocumentListController', [ |
|
23 'getClient' => 'bo.docs.client' |
|
24 ]); |
23 |
25 |
24 |
26 |
25 Route::controllers([ |
27 Route::controllers([ |
26 // 'auth' => 'Auth\AuthController', |
28 // 'auth' => 'Auth\AuthController', |
27 'password' => 'Auth\PasswordController', |
29 'password' => 'Auth\PasswordController', |
28 ]); |
30 ]); |
|
31 }); |
29 |
32 |
30 /* |
33 /* |
31 |-------------------------------------------------------------------------- |
34 |-------------------------------------------------------------------------- |
32 | Api Route |
35 | Api Route |
33 |-------------------------------------------------------------------------- |
36 |-------------------------------------------------------------------------- |
45 Route::resource('bnf', 'Api\BnfController', |
48 Route::resource('bnf', 'Api\BnfController', |
46 ['only' => ['index','show']]); |
49 ['only' => ['index','show']]); |
47 Route::resource('languages', 'Api\LanguageController', |
50 Route::resource('languages', 'Api\LanguageController', |
48 ['only' => ['index']]); |
51 ['only' => ['index']]); |
49 }); |
52 }); |
|
53 |
|
54 /* |
|
55 |-------------------------------------------------------------------------- |
|
56 | Proxy Route |
|
57 |-------------------------------------------------------------------------- |
|
58 | |
|
59 | |
|
60 */ |
|
61 Route::group(['prefix' => 'proxy', 'middleware' => 'cors'] , function() { |
|
62 Route::get('bnf', 'Proxy\BnfController@proxyAutoCompletion'); |
|
63 Route::get('bnf-sparql', 'Proxy\BnfController@proxySparql'); |
|
64 }); |