'use strict';

const path = require('path');
const FileBackend = require('../backends/FileBackend');

const backend = new FileBackend({
    baseDir: path.resolve(__dirname, '../../../datasets/assetData/curves'),
    layout: 'per-id',
    caseInsensitive: true,
});

module.exports = {
    name: 'curves',
    description: 'Pump and valve performance curves keyed by model id',
    loadAll: () => backend.loadAll(),
    refresh: () => backend.refresh(),
};
