Skip to content

GizemSever/adonisjs-mailerlite

Repository files navigation

Adonisjs MailerLite

typescript-image license-image

Installation

npm i --save adonis-mailerlite

Connect all dependencies:

node ace invoke adonis-mailerlite

Sample Usage

import type {HttpContextContract} from '@ioc:Adonis/Core/HttpContext'
import MailerLite from '@ioc:Adonis/Addons/MailerLite';

export default class TestsController {
  public async test({response}: HttpContextContract) {
    const subs = await MailerLite.getSubscribers();
    return response.ok(subs);
  }
}

For more