mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 02:39:10 -04:00
ALPHA 3.0.5
This commit is contained in:
@@ -32,6 +32,9 @@ Route::middleware('auth:api')->group(function () {
|
||||
/** Inventory Route */
|
||||
Route::post('/item/delete', 'ItemController@destroy');
|
||||
|
||||
/** Config Route */
|
||||
Route::post('/config/general/save', 'ConfigController@update');
|
||||
|
||||
Route::get('/user/perm/{id}', function($id) {
|
||||
$user = \App\User::find($id);
|
||||
return $user->getPerm("schedule_edit");
|
||||
|
||||
@@ -55,6 +55,8 @@ Route::middleware(['auth','admin'])->group(function () {
|
||||
Route::get('/admin/config/job/add' , 'JobController@create');
|
||||
Route::post('/admin/config/job/add' , 'JobController@store');
|
||||
Route::get('/admin/config/job/edit/{id}' , 'JobController@edit');
|
||||
Route::get('/admin/config' , 'ConfigController@index');
|
||||
|
||||
|
||||
/** Inventory */
|
||||
Route::get('/admin/inventory' , 'InventoryController@index');
|
||||
@@ -92,8 +94,8 @@ Route::middleware(['auth','staff'])->group(function () {
|
||||
});
|
||||
/* Other Route */
|
||||
Route::get('/test', function () {
|
||||
|
||||
return view('welcome');
|
||||
|
||||
dd(getStatus());
|
||||
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user