fix(blueprint.sh): Make sure that not all extension routes become comments.
This commit is contained in:
parent
17ce287e0b
commit
bbf98659ea
2 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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␀
|
Loading…
Reference in a new issue