PHP Classes

File: routes/api.php

Recommend this page to a friend!
  Classes of Naif Alshaye   Laravel Nova PHP Mailchimp Send Email   routes/api.php   Download  
File: routes/api.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Laravel Nova PHP Mailchimp Send Email
Send email to subscribers of lists of Mailchimp
Author: By
Last change:
Date: 5 years ago
Size: 1,006 bytes
 

Contents

Class file image Download
<?php

use Illuminate\Http\Request;
use
Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Tool API Routes
|--------------------------------------------------------------------------
|
| Here is where you may register API routes for your tool. These routes
| are loaded by the ServiceProvider of your tool. They are protected
| by your tool's "Authorize" middleware by default. Now, go build!
|
*/

// Route::get('/endpoint', function (Request $request) {
// //
// });
Route::post('/add', 'Naif\MailchimpTool\Http\Controllers\MailChimpController@add');
Route::post('/send', 'Naif\MailchimpTool\Http\Controllers\MailChimpController@send');
Route::post('/delete', 'Naif\MailchimpTool\Http\Controllers\MailChimpController@delete');
Route::get('/subscribers_count', 'Naif\MailchimpTool\Http\Controllers\MailChimpController@subscribersCount');
Route::get('/subscribers', 'Naif\MailchimpTool\Http\Controllers\MailChimpController@subscribers');