npm i --save adonis-mailerlite
Connect all dependencies:
node ace invoke adonis-mailerlite
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);
}
}