2018-01-24 00:25:04 +09:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Web Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2018-01-24 01:37:00 +09:00
|
|
|
header('Access-Control-Allow-Origin: *');
|
|
|
|
header('Access-Control-Allow-Headers: "Origin, X-Requested-With, Content-Type, Accept"');
|
|
|
|
|
2018-02-02 21:18:25 +09:00
|
|
|
Auth::routes();
|
|
|
|
|
2018-02-02 18:27:57 +09:00
|
|
|
// require(__DIR__.'/class/board.php');
|
|
|
|
// require(__DIR__.'/class/document.php');
|
|
|
|
// require(__DIR__.'/class/image.php');
|
|
|
|
// require(__DIR__.'/class/odb.php');
|
|
|
|
// require(__DIR__.'/class/page.php');
|
|
|
|
require(__DIR__.'/class/store.php');
|
|
|
|
require(__DIR__.'/class/user.php');
|
2018-01-24 01:37:00 +09:00
|
|
|
|
|
|
|
// Permissions
|
2018-01-24 05:52:03 +09:00
|
|
|
Route::get('/api/rpc/permission/getpermissionsfrommodule', 'PermissionController@getPermissionsFromModule');
|
|
|
|
Route::get('/api/rpc/permission/getpermissionfrommodule/{id}', 'PermissionController@getPermissionFromModule');
|
|
|
|
Route::get('/api/rpc/permission/getstorepermissions', 'PermissionController@getStorePermissions');
|
|
|
|
Route::get('/api/rpc/permission/getstorepermissiongroup/{id}', 'PermissionController@getStorePermissionGroup');
|
|
|
|
Route::get('/api/rpc/permission/getstorepermissionuser/{id}', 'PermissionController@getStorePermissionUser');
|
|
|
|
Route::get('/api/rpc/permission/getuserpermissions', 'PermissionController@getUserPermissions');
|
|
|
|
Route::get('/api/rpc/permission/getuserpermissiongroup/{id}', 'PermissionController@getUserPermissionGroup');
|
|
|
|
Route::get('/api/rpc/permission/getuserpermissionuser/{id}', 'PermissionController@getUserPermissionUser');
|