routes.php
1.47 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::get('/', function () {
return view('welcome');
});
Route::get('pdf/{id}', 'PdfController@pdf');
Route::group(array('prefix' => 'api/v1'), function($json)
{
Route::resource('add', 'ApiController@insert');
Route::resource('get-list', 'ApiController@getList');
Route::resource('get-pdf', 'ApiController@getpdf');
Route::resource('api', 'FileEntryController@getApi');
});
Route::any('api/update', 'ApiController@update');
Route::post('api/authenticate', 'AuthenticateController@authenticate');
Route::get('api/authenticate/user', 'AuthenticateController@getAuthenticatedUser');
Route::any('fileentry/postUpload', 'FileEntryController@postUpload');
Route::get('fileentry/get/{filename}', [
'as' => 'getentry', 'uses' => 'FileEntryController@get']);
Route::get('fileentry', 'FileEntryController@index');
Route::get('fileentry/getImage/{folder}/{filename}', 'FileEntryController@getImage');
Route::get('fileentry/getPDF/{folder}/{filename}', 'FileEntryController@getPDF');
Route::post('fileentry/add',[
'as' => 'addentry', 'uses' => 'FileEntryController@add']);