fix(blueprint.sh): Make sure that not all extension routes become comments.

This commit is contained in:
purple 2023-10-01 15:01:05 +02:00
parent 17ce287e0b
commit bbf98659ea
2 changed files with 4 additions and 4 deletions

View file

@ -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)

View file

@ -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␀