<?php

use Illuminate\Support\Facades\Route;
use Modules\Blog\Http\Controllers\Admin\PostController as AdminPostController;
use Modules\Blog\Http\Controllers\Admin\CategoryController as AdminCategoryController;
use Modules\Blog\Http\Controllers\Admin\TagController as AdminTagController;

// The RouteServiceProvider for the Blog module already applies:
// - Middleware: ['web', \App\Http\Middleware\IsAdminMiddleware::class]
// - URL Prefix: 'admin/blog'
// - Name Prefix: 'admin.blog.'

// Posts
Route::resource('posts', AdminPostController::class)->except(['show']);
// Categories
Route::resource('categories', AdminCategoryController::class)->except(['show']);
// Tags
Route::resource('tags', AdminTagController::class)->except(['show']);

// You might add routes for managing comments or blog settings here later