Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

once file module is set up, add options here #341

Open
github-actions bot opened this issue Jul 6, 2022 · 0 comments
Open

once file module is set up, add options here #341

github-actions bot opened this issue Jul 6, 2022 · 0 comments
Labels

Comments

@github-actions
Copy link

github-actions bot commented Jul 6, 2022

once file module is set up, add options here

// TODO: once file module is set up, add options here

import { mergeConfigurations } from '../../core/flox-helpers';
import { floxModuleOptions } from '../../core/flox-helpers';
import { MODULES } from '../../MODULES';

/**
 * The file module handles file up/download using a database table each for private and public files, as well as storing
 * the files in S3 and requesting corresponding URLs.
 */

type FileModuleConfig = {
  // TODO: once file module is set up, add options here
};

// Default configuration set; will get merged with custom config from flox.config.js
const defaultConfig: FileModuleConfig = {
  // TODO: once file module is set up, add options here
};

/**
 * Gets the module's actual configuration
 * @returns {FileModuleConfig} - configuration
 */
export function moduleConfig() {
  return mergeConfigurations(
    defaultConfig,
    floxModuleOptions(MODULES.FILE),
  ) as FileModuleConfig;
}

ba633754aba41a2f352ac8009307683c763daebe

@github-actions github-actions bot added the todo label Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants