update
This commit is contained in:
@@ -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')
|
Route::prefix('v1')
|
||||||
->group(function () {
|
->group(function () {
|
||||||
// Invoice Test — Send invoice email with PDF attachment
|
// Invoice Test — Send invoice email with PDF attachment
|
||||||
@@ -71,12 +63,6 @@ Route::prefix('v1')
|
|||||||
Route::get('{invoiceNumber}/preview-pdf', 'previewInvoicePdf');
|
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 */
|
/* Api for Admin */
|
||||||
->group(function () {
|
->group(function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user