Skip to content

Commit 4ba065a

Browse files
committed
publish webpage route (states) (III) 🚀
1 parent 21c75d6 commit 4ba065a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎routes/org/web/models.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
use App\Actions\Catalogue\Product\UpdateProduct;
4040
use App\Actions\Catalogue\Product\ImportProducts;
4141
use App\Actions\UI\Organisation\Profile\UpdateProfile;
42+
use App\Actions\Web\Webpage\PublishWebpage;
4243
use App\Actions\Web\Webpage\ShowWebpageContent;
4344
use App\Actions\Web\Webpage\StoreArticle;
4445
use App\Actions\Web\Webpage\StoreWebpage;
@@ -121,6 +122,8 @@
121122
Route::prefix('webpage')->as('webpage.')->group(function () {
122123
Route::post('{webpage:id}', StoreWebpage::class)->name('store');
123124
Route::post('{webpage:id}/content', UpdateWebpageContent::class)->name('content.update');
125+
Route::post('{webpage:id}/publish', PublishWebpage::class)->name('content.publish');
126+
124127
Route::get('{webpage:id}/content', ShowWebpageContent::class)->name('content.show');
125128

126129
//Route::patch('{webpage:id}', UpdateWebsite::class)->name('update');

0 commit comments

Comments
 (0)