author | ymh <ymh.work@gmail.com> |
Fri, 08 Apr 2016 17:50:49 +0200 | |
changeset 145 | 49b75287c30b |
parent 140 | f851ec12812f |
child 158 | 366509ae2f37 |
permissions | -rw-r--r-- |
1
01a844d292ac
dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
1 |
<?php |
01a844d292ac
dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
2 |
|
01a844d292ac
dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
3 |
/* |
01a844d292ac
dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
4 |
|-------------------------------------------------------------------------- |
01a844d292ac
dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
5 |
| Application Routes |
01a844d292ac
dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
6 |
|-------------------------------------------------------------------------- |
01a844d292ac
dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
7 |
| |
01a844d292ac
dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
8 |
| Here is where you can register all of the routes for an application. |
01a844d292ac
dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
9 |
| It's a breeze. Simply tell Laravel the URIs it should respond to |
01a844d292ac
dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
10 |
| and give it the controller to call when that URI is requested. |
01a844d292ac
dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
11 |
| |
01a844d292ac
dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
12 |
*/ |
01a844d292ac
dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
13 |
|
140 | 14 |
Route::get('/', 'WelcomeController@index'); |
1
01a844d292ac
dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
15 |
|
140 | 16 |
Route::get('home', 'HomeController@index'); |
139
8d688175513a
add proxy for bnf completion and sparql request + upgrade kernel + route
ymh <ymh.work@gmail.com>
parents:
133
diff
changeset
|
17 |
|
140 | 18 |
Route::group(['middleware' => ['web']], function () { |
1
01a844d292ac
dev environment + first skeleton for bo
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
19 |
|
139
8d688175513a
add proxy for bnf completion and sparql request + upgrade kernel + route
ymh <ymh.work@gmail.com>
parents:
133
diff
changeset
|
20 |
//Route::get('bo/docs/docDetailClient', 'Bo\DocumentListController@showClient'); |
145
49b75287c30b
correct backoffocie with new handle if format
ymh <ymh.work@gmail.com>
parents:
140
diff
changeset
|
21 |
Route::pattern('docs', ".*"); |
49b75287c30b
correct backoffocie with new handle if format
ymh <ymh.work@gmail.com>
parents:
140
diff
changeset
|
22 |
Route::get('bo/docs/client/{docs}', 'Bo\DocumentListController@getClient') |
49b75287c30b
correct backoffocie with new handle if format
ymh <ymh.work@gmail.com>
parents:
140
diff
changeset
|
23 |
->name('bo.docs.client') |
49b75287c30b
correct backoffocie with new handle if format
ymh <ymh.work@gmail.com>
parents:
140
diff
changeset
|
24 |
->where('docs', '.+'); |
139
8d688175513a
add proxy for bnf completion and sparql request + upgrade kernel + route
ymh <ymh.work@gmail.com>
parents:
133
diff
changeset
|
25 |
Route::resource('bo/docs', 'Bo\DocumentListController'); |
20
a9b98b16b053
add contributor list + edition pane
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
26 |
|
2
00e2916104fe
Migrate to php 5.6 + Laravel 5.1 + add phpunit test
ymh <ymh.work@gmail.com>
parents:
1
diff
changeset
|
27 |
|
139
8d688175513a
add proxy for bnf completion and sparql request + upgrade kernel + route
ymh <ymh.work@gmail.com>
parents:
133
diff
changeset
|
28 |
Route::controllers([ |
8d688175513a
add proxy for bnf completion and sparql request + upgrade kernel + route
ymh <ymh.work@gmail.com>
parents:
133
diff
changeset
|
29 |
// 'auth' => 'Auth\AuthController', |
8d688175513a
add proxy for bnf completion and sparql request + upgrade kernel + route
ymh <ymh.work@gmail.com>
parents:
133
diff
changeset
|
30 |
'password' => 'Auth\PasswordController', |
8d688175513a
add proxy for bnf completion and sparql request + upgrade kernel + route
ymh <ymh.work@gmail.com>
parents:
133
diff
changeset
|
31 |
]); |
8d688175513a
add proxy for bnf completion and sparql request + upgrade kernel + route
ymh <ymh.work@gmail.com>
parents:
133
diff
changeset
|
32 |
}); |
4
f55970e41793
first skeleton of bo client in ember
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
33 |
|
f55970e41793
first skeleton of bo client in ember
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
34 |
/* |
f55970e41793
first skeleton of bo client in ember
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
35 |
|-------------------------------------------------------------------------- |
f55970e41793
first skeleton of bo client in ember
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
36 |
| Api Route |
f55970e41793
first skeleton of bo client in ember
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
37 |
|-------------------------------------------------------------------------- |
f55970e41793
first skeleton of bo client in ember
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
38 |
| |
f55970e41793
first skeleton of bo client in ember
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
39 |
| |
f55970e41793
first skeleton of bo client in ember
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
40 |
*/ |
f55970e41793
first skeleton of bo client in ember
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
41 |
|
107 | 42 |
Route::group(['prefix' => 'api/v1', 'middleware' => 'cors'] , function() { |
145
49b75287c30b
correct backoffocie with new handle if format
ymh <ymh.work@gmail.com>
parents:
140
diff
changeset
|
43 |
Route::pattern('documents', ".*"); |
20
a9b98b16b053
add contributor list + edition pane
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
44 |
Route::resource('documents', 'Api\DocumentController', |
28 | 45 |
['only' => ['index', 'show', 'update']]); |
23 | 46 |
Route::resource('viaf', 'Api\ViafController', |
47 |
['only' => ['show']]); |
|
28 | 48 |
Route::resource('lexvo', 'Api\LexvoController', |
49 |
['only' => ['show']]); |
|
133 | 50 |
Route::resource('bnf', 'Api\BnfController', |
51 |
['only' => ['index','show']]); |
|
126
e87a340711a4
improve on dataloading. add fixture management with proper interface to load data.
ymh <ymh.work@gmail.com>
parents:
107
diff
changeset
|
52 |
Route::resource('languages', 'Api\LanguageController', |
e87a340711a4
improve on dataloading. add fixture management with proper interface to load data.
ymh <ymh.work@gmail.com>
parents:
107
diff
changeset
|
53 |
['only' => ['index']]); |
20
a9b98b16b053
add contributor list + edition pane
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
54 |
}); |
139
8d688175513a
add proxy for bnf completion and sparql request + upgrade kernel + route
ymh <ymh.work@gmail.com>
parents:
133
diff
changeset
|
55 |
|
8d688175513a
add proxy for bnf completion and sparql request + upgrade kernel + route
ymh <ymh.work@gmail.com>
parents:
133
diff
changeset
|
56 |
/* |
8d688175513a
add proxy for bnf completion and sparql request + upgrade kernel + route
ymh <ymh.work@gmail.com>
parents:
133
diff
changeset
|
57 |
|-------------------------------------------------------------------------- |
8d688175513a
add proxy for bnf completion and sparql request + upgrade kernel + route
ymh <ymh.work@gmail.com>
parents:
133
diff
changeset
|
58 |
| Proxy Route |
8d688175513a
add proxy for bnf completion and sparql request + upgrade kernel + route
ymh <ymh.work@gmail.com>
parents:
133
diff
changeset
|
59 |
|-------------------------------------------------------------------------- |
8d688175513a
add proxy for bnf completion and sparql request + upgrade kernel + route
ymh <ymh.work@gmail.com>
parents:
133
diff
changeset
|
60 |
| |
8d688175513a
add proxy for bnf completion and sparql request + upgrade kernel + route
ymh <ymh.work@gmail.com>
parents:
133
diff
changeset
|
61 |
| |
8d688175513a
add proxy for bnf completion and sparql request + upgrade kernel + route
ymh <ymh.work@gmail.com>
parents:
133
diff
changeset
|
62 |
*/ |
8d688175513a
add proxy for bnf completion and sparql request + upgrade kernel + route
ymh <ymh.work@gmail.com>
parents:
133
diff
changeset
|
63 |
Route::group(['prefix' => 'proxy', 'middleware' => 'cors'] , function() { |
8d688175513a
add proxy for bnf completion and sparql request + upgrade kernel + route
ymh <ymh.work@gmail.com>
parents:
133
diff
changeset
|
64 |
Route::get('bnf', 'Proxy\BnfController@proxyAutoCompletion'); |
8d688175513a
add proxy for bnf completion and sparql request + upgrade kernel + route
ymh <ymh.work@gmail.com>
parents:
133
diff
changeset
|
65 |
Route::get('bnf-sparql', 'Proxy\BnfController@proxySparql'); |
8d688175513a
add proxy for bnf completion and sparql request + upgrade kernel + route
ymh <ymh.work@gmail.com>
parents:
133
diff
changeset
|
66 |
}); |