import { Module } from '@nestjs/common';
import { NextcloudConnector } from './nextcloud.connector';
import { NextcloudService } from './nextcloud.service';
import { NextcloudController } from './nextcloud.controller';
import { CredentialsModule } from '../../credentials/credentials.module';

/**
 * Nextcloud Integration Module
 *
 * Provides integration with Nextcloud cloud storage.
 * Credentials are stored in the DB and loaded via CredentialsService.
 */
@Module({
  imports: [CredentialsModule],
  controllers: [NextcloudController],
  providers: [NextcloudConnector, NextcloudService],
  exports: [NextcloudService, NextcloudConnector],
})
export class NextcloudModule {}
