Add newsletter subscription endpoint (email/mobile) plus admin CSV export
Deploy Backend / deploy (push) Successful in 2m50s
Deploy Backend / deploy (push) Successful in 2m50s
This commit is contained in:
1 parent
e98807da05
commit
eacd0d73f1
6 files changed
+214
No files matched your search
@@ -10,6 +10,7 @@ use App\Http\Controllers\Api\Blog\PostController;
|
||||
use App\Http\Controllers\Api\Blog\PostInteractionController;
|
||||
use App\Http\Controllers\Api\Blog\TagController;
|
||||
use App\Http\Controllers\Api\ContactMessageController;
|
||||
use App\Http\Controllers\Api\NewsletterSubscriptionController;
|
||||
use App\Http\Controllers\Api\Website\AboutMeController;
|
||||
use App\Http\Controllers\Api\Website\ProjectCategoryController;
|
||||
use App\Http\Controllers\Api\Website\ProjectController;
|
||||
@@ -84,6 +85,17 @@ Route::middleware('throttle:60,1')->group(function () {
|
||||
Route::post('contact', [ContactMessageController::class, 'store'])
|
||||
->middleware('throttle:5,1');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Newsletter subscriptions
|
||||
|--------------------------------------------------------------------------
|
||||
| Stored and read from the admin panel like contact messages, so the write
|
||||
| endpoint is public (no auth) but throttled the same way.
|
||||
*/
|
||||
|
||||
Route::post('newsletter/subscribe', [NewsletterSubscriptionController::class, 'subscribe'])
|
||||
->middleware('throttle:5,1');
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Public blog interactions
|
||||
|
||||
Reference in new issue
Block a user