14 lines
417 B
TypeScript
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();
|
|
}
|
|
|
|
} |