var express = require('express');
var { join } = require('path');

/**
 * 获取NcLocalFile库文件
 * @param {express.request} request 请求
 * @param {express.response} response 响应
 */
function getNcLocalFileJS(request, response) {
  response.sendFile(join(__dirname, '../../dist/<%= getSeparatorCase(microFrontendName) %>/nc-local-file.js'));
}

module.exports = {
  'GET /nc-local-file.js': getNcLocalFileJS
};
