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

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

module.exports = {
  'GET /nc-role.js': getNcRoleJS
};
