Skip to content

Commit

Permalink
fix: api get tag by slug
Browse files Browse the repository at this point in the history
  • Loading branch information
thuankg1752 committed Jan 11, 2025
1 parent 9c03a84 commit 02943fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion routes/blog-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,5 @@
Route::group(['prefix' => 'tags'], function () {
Route::get('/', [TagController::class, 'index']);
Route::get('{slug}', [TagController::class, 'findBySlug']);

});
});
2 changes: 1 addition & 1 deletion src/Http/Controllers/TagController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace CSlant\Blog\Api\Http\Controllers;

use Botble\Blog\Models\Tag;
use CSlant\Blog\Api\Enums\StatusEnum;
use CSlant\Blog\Api\Http\Resources\TagResource;
use CSlant\Blog\Core\Facades\Base\SlugHelper;
use CSlant\Blog\Core\Http\Controllers\Base\BaseTagController;
use CSlant\Blog\Core\Models\Tag;

class TagController extends BaseTagController
{
Expand Down

0 comments on commit 02943fa

Please sign in to comment.