UNPKG

highcharts-export-server

Version:

**Note:** If you use the public Export Server at [https://export.highcharts.com](https://export.highcharts.com) you should read our [Terms of use and Fair Usage Policy](https://www.highcharts.com/docs/export-module/privacy-disclaimer-export). Note that a

30 lines (20 loc) 719 B
/******************************************************************************* Highcharts Export Server Copyright (c) 2016-2024, Highsoft Licenced under the MIT licence. Additionally a valid Highcharts license is required for use. See LICENSE file in root for details. *******************************************************************************/ import { join } from 'path'; import { __dirname } from '../../utils.js'; /** * Adds the GET / route for a UI when enabled on the export server. */ export default (app) => !app ? false : app.get('/', (_request, response) => { response.sendFile(join(__dirname, 'public', 'index.html'), { acceptRanges: false }); });