This commit is contained in:
baodev0
2026-07-06 08:43:47 +07:00
parent 5bc4dd722f
commit 48c63371ac
-14
View File
@@ -53,14 +53,6 @@ use Illuminate\Support\Facades\Route;
|
*/
Route::prefix('admin')->middleware('api.auth:admin')->group(function () {
Route::post('posts/sync-wordpress', [AdminPostController::class, 'syncWordpress']);
Route::apiResource('post-categories', AdminPostCategoryController::class)
->only(['index', 'store', 'show', 'update', 'destroy']);
Route::apiResource('posts', AdminPostController::class)
->only(['index', 'store', 'show', 'update', 'destroy']);
});
Route::prefix('v1')
->group(function () {
// Invoice Test — Send invoice email with PDF attachment
@@ -71,12 +63,6 @@ Route::prefix('v1')
Route::get('{invoiceNumber}/preview-pdf', 'previewInvoicePdf');
});
Route::prefix('admin')->middleware('api.auth:admin')->group(function () {
Route::apiResource('post-categories', AdminPostCategoryController::class)
->only(['index', 'store', 'show', 'update', 'destroy']);
Route::apiResource('posts', AdminPostController::class)
->only(['index', 'store', 'show', 'update', 'destroy']);
});
})
/* Api for Admin */
->group(function () {