このリポジトリは2023-09-09にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
076server/routes/web.php
テクニカル諏訪子 1d8125c772 Auth attempt.
2018-02-02 21:18:25 +09:00

36 行
1.6 KiB
PHP

<?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!
|
*/
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Headers: "Origin, X-Requested-With, Content-Type, Accept"');
Auth::routes();
// 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');
// Permissions
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');