]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/Api/ChapterApiController.php
Added testing to cover the pages API
[bookstack] / app / Http / Controllers / Api / ChapterApiController.php
index 60e0f01312f9bb1047e88a556e158b75fc1ef8f7..e69aecc2ddcd9df9141e30f30edd2bcd821bd590 100644 (file)
@@ -1,8 +1,8 @@
 <?php namespace BookStack\Http\Controllers\Api;
 
 use BookStack\Actions\ActivityType;
-use BookStack\Entities\Book;
-use BookStack\Entities\Chapter;
+use BookStack\Entities\Models\Book;
+use BookStack\Entities\Models\Chapter;
 use BookStack\Entities\Repos\ChapterRepo;
 use BookStack\Facades\Activity;
 use Illuminate\Database\Eloquent\Relations\HasMany;
@@ -86,7 +86,8 @@ class ChapterApiController extends ApiController
     }
 
     /**
-     * Delete a chapter from the system.
+     * Delete a chapter.
+     * This will typically send the chapter to the recycle bin.
      */
     public function delete(string $id)
     {