Skip to content

Commit

Permalink
Merge pull request #377 from EmpireSeeker/email-template
Browse files Browse the repository at this point in the history
feat: Super Admin Email Template
  • Loading branch information
Dev-Tonia authored Aug 8, 2024
2 parents 3230ef3 + 8993d52 commit 4b2f884
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
use App\Http\Controllers\UserNotificationController;
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Api\V1\Admin\AdminDashboardController;

/*
|--------------------------------------------------------------------------
| API Routes
Expand Down Expand Up @@ -275,6 +276,15 @@
//Email Template
Route::apiResource('email-templates', EmailTemplateController::class);
});

//super Admin Email template
Route::prefix('v1/admin')->group(function () {
Route::get('email-templates', [EmailTemplateController::class, 'index']);
Route::get('email-templates/{id}', [EmailTemplateController::class, 'show']);
Route::post('email-templates', [EmailTemplateController::class, 'store']);
Route::put('email-templates/{id}', [EmailTemplateController::class, 'update']);
Route::delete('email-templates/{id}', [EmailTemplateController::class, 'destroy']);
});
// User Notification
Route::patch('/notifications/{notification}', [UserNotificationController::class, 'update']);
Route::delete('/notifications', [UserNotificationController::class, 'destroy']);
Expand Down

0 comments on commit 4b2f884

Please sign in to comment.