このコミットが含まれているのは:
テクニカル諏訪子 2018-01-24 01:37:00 +09:00
コミット 8e3083154c
2個のファイルの変更36行の追加2行の削除

1
.gitignore vendored
ファイルの表示

@ -10,3 +10,4 @@ Homestead.yaml
npm-debug.log
yarn-error.log
.env
/storage/app/public/store

ファイルの表示

@ -11,15 +11,48 @@
|
*/
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Headers: "Origin, X-Requested-With, Content-Type, Accept"');
// FRONTEND
Route::get('/', function () {
return view('welcome');
});
// BACKEND
Route::get('/api/rpc/example/getusers', 'ExampleController@getUsers');
// Category
Route::get('/api/rpc/category/getcategories', 'CategoryController@getCategories');
Route::get('/api/rpc/category/getcategory/{id}', 'CategoryController@getCategory');
Route::get('/api/rpc/category/getcategoryparent/{id}', 'CategoryController@getCategoryParent');
Route::get('/api/rpc/category/getcategoryminscrot/{id}', 'CategoryController@getCategoryMinScreenshots');
// File
Route::get('/api/rpc/file/getallfiles', 'FileController@getAllFiles');
Route::get('/api/rpc/file/getallfiles', 'FileController@getAllFiles');
Route::get('/api/rpc/file/getallfiles', 'FileController@getAllFiles');
Route::get('/api/rpc/file/getallfiles', 'FileController@getAllFiles');
Route::get('/api/rpc/file/getfile/{id}', 'FileController@getFile');
Route::get('/api/rpc/file/getapprovedfile/{id}', 'FileController@getApprovedFile');
Route::get('/api/rpc/file/getbrokenfile/{id}', 'FileController@getBrokenFile');
Route::get('/api/rpc/file/getpendingfile/{id}', 'FileController@getPendingFile');
Route::get('/api/rpc/file/getfileincategory{cat_id}', 'FileController@getFileInCategory');
Route::get('/api/rpc/file/getwarningnotice/{id}', 'FileController@getWarningNotice');
// Owners
Route::get('/api/rpc/owners/getowners', 'OwnerController@getOwners');
Route::get('/api/rpc/owners/getowner/{id}', 'OwnerController@getOwner');
Route::get('/api/rpc/owners/getownerfile/{file_id}', 'OwnerController@getOwnerFile');
Route::get('/api/rpc/owners/getowneruser/{user_id}', 'OwnerController@getOwnerUser');
// Permissions
Route::get('/api/rpc/permissions/getpermissions', 'PermissionsController@getPermissions');
// Users
Route::get('/api/rpc/users/getusers', 'UserController@getUsers');
/*Route::get('/api/rpc/example/getusers', 'ExampleController@getUsers');
Route::get('/api/rpc/example/getuser/{id}', 'ExampleController@getUser');
Route::post('/api/rpc/example/adduser', 'ExampleController@addUser');
Route::post('/api/rpc/example/edituser', 'ExampleController@editUser');
Route::post('/api/rpc/example/deleteuser', 'ExampleController@deleteUser');
Route::post('/api/rpc/example/browse', 'ExampleController@browse');
Route::post('/api/rpc/example/browse', 'ExampleController@browse');*/