Skip to content

Commit

Permalink
Merge pull request #62 from jd-dotlogics/bugfix/add_middlewares_to_co…
Browse files Browse the repository at this point in the history
…nfig

Bugfix/add middlewares to config
  • Loading branch information
mjawad096 authored Oct 25, 2022
2 parents 011265d + e51133f commit 0fe5d52
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dist/assets/editor.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/assets/editor.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/assets/editor.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@
* Date: 2021-03-02T17:08Z
*/

/*! grapesjs - 0.18.4 */

/*! grapesjs-blocks-bootstrap4 - 0.2.3 */
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"devDependencies": {
"axios": "^0.21",
"grapesjs": "^0.19.5",
"grapesjs": "^0.18.4",
"grapesjs-blocks-basic": "^0.1.8",
"grapesjs-blocks-bootstrap4": "^0.2.3",
"grapesjs-tui-image-editor": "^0.1.3",
Expand Down
15 changes: 15 additions & 0 deletions src/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@

'expose_api' => false,

/*
|--------------------------------------------------------------------------
| Routes
|--------------------------------------------------------------------------
|
| Routes Settings
|
*/

'routes' => [
'middleware' => [
'web', 'auth',
],
],

/*
|--------------------------------------------------------------------------
| Force Class
Expand Down
2 changes: 1 addition & 1 deletion src/routes/laravel-grapesjs.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Route::prefix('laravel-grapesjs')
->name('laravel-grapesjs.')
->middleware('web')
->middleware(config('laravel-grapesjs.routes.middleware', []))
->namespace('Dotlogics\Grapesjs\App\Http\Controllers')
->group(function(){
Route::post('asset/store', 'AssetController@store')->name('asset.store');
Expand Down

0 comments on commit 0fe5d52

Please sign in to comment.