metin2-private-server / cloud /open-mt2 /src /auth /app /AuthApplication.ts
manus4oHER's picture
Upload folder using huggingface_hub
eee16fe verified
Raw
History Blame Contribute Delete
615 Bytes
import Application from '../../core/app/Application';
export default class AuthApplication extends Application {
async start() {
this.logger.info('[APP] Init auth application');
await this.databaseManager.init();
await this.cacheProvider.init();
await this.server.setup().start();
this.logger.info('[APP] Auth application started πŸ”’πŸš€');
}
async close() {
this.logger.info('[APP] Closing auth application... πŸ”’πŸ›¬');
await this.server.close();
await this.databaseManager.close();
await this.cacheProvider.close();
}
}