diff --git a/blueprint.sh b/blueprint.sh index 82b444c..3482f96 100644 --- a/blueprint.sh +++ b/blueprint.sh @@ -602,7 +602,9 @@ if [[ ( $2 == "-i" ) || ( $2 == "-install" ) ]]; then VCMD="y" if [[ $DUPLICATE != "y" ]]; then # Place admin route if extension is not updating. - echo $ADMINROUTE_RESULT >> routes/admin.php + echo -e "\n// ␀$identifier:start␀" >> routes/admin.php + echo -e "\n$ADMINROUTE_RESULT" >> routes/admin.php + echo -e "\n// ␀$identifier:stop␀" >> routes/admin.php else # Replace old extensions page button if extension is updating. OLDBUTTON_RESULT=$(<.blueprint/data/extensions/$identifier/.store/build/button.blade.php) diff --git a/blueprint/data/internal/build/extensions/route.php b/blueprint/data/internal/build/extensions/route.php index 6d96e95..d7fb784 100644 --- a/blueprint/data/internal/build/extensions/route.php +++ b/blueprint/data/internal/build/extensions/route.php @@ -1,3 +1 @@ -// ␀␀id␀:start␀ -Route::group(['prefix' => 'extensions/␀id␀'], function () {Route::get('/', [Admin\Extensions\␀id␀\␀id␀ExtensionController::class, 'index'])->name('admin.extensions.␀id␀.index');Route::patch('/', [Admin\Extensions\␀id␀\␀id␀ExtensionController::class, 'update']);}); -// ␀␀id␀:stop␀ \ No newline at end of file +Route::group(['prefix' => 'extensions/␀id␀'], function () {Route::get('/', [Admin\Extensions\␀id␀\␀id␀ExtensionController::class, 'index'])->name('admin.extensions.␀id␀.index');Route::patch('/', [Admin\Extensions\␀id␀\␀id␀ExtensionController::class, 'update']);}); \ No newline at end of file