]> BookStack Code Mirror - bookstack/blobdiff - routes/web.php
ZIP Imports: Added API examples, finished testing
[bookstack] / routes / web.php
index 8184725834caae44f3dae98942d2bc981ec84406..ea3efe1ac776cea1d6ebf16349531d3958b6cd8b 100644 (file)
@@ -179,6 +179,8 @@ Route::middleware('auth')->group(function () {
 
     // Comments
     Route::post('/comment/{pageId}', [ActivityControllers\CommentController::class, 'savePageComment']);
+    Route::put('/comment/{id}/archive', [ActivityControllers\CommentController::class, 'archive']);
+    Route::put('/comment/{id}/unarchive', [ActivityControllers\CommentController::class, 'unarchive']);
     Route::put('/comment/{id}', [ActivityControllers\CommentController::class, 'update']);
     Route::delete('/comment/{id}', [ActivityControllers\CommentController::class, 'destroy']);