mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
15 lines
405 B
JavaScript
15 lines
405 B
JavaScript
|
import { ok, methodNotAllowed } from 'lib/response';
|
||
|
|
||
|
export default async (req, res) => {
|
||
|
if (req.method === 'GET') {
|
||
|
return ok(res, {
|
||
|
basePath: process.env.BASE_PATH || '',
|
||
|
trackerScriptName: process.env.TRACKER_SCRIPT_NAME,
|
||
|
updatesDisabled: !!process.env.DISABLE_UPDATES,
|
||
|
telemetryDisabled: !!process.env.DISABLE_TELEMETRY,
|
||
|
});
|
||
|
}
|
||
|
|
||
|
return methodNotAllowed(res);
|
||
|
};
|