swaf/src/components/MailComponent.ts
2020-04-22 17:49:58 +02:00

14 lines
417 B
TypeScript

import ApplicationComponent from "../ApplicationComponent";
import {Express, Router} from "express";
import Mail from "../Mail";
export default class MailComponent extends ApplicationComponent<void> {
public async start(app: Express, router: Router): Promise<void> {
await this.prepare('Mail connection', () => Mail.prepare());
}
public async stop(): Promise<void> {
Mail.end();
}
}