mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-16 02:05:04 +01:00
18 lines
548 B
JavaScript
18 lines
548 B
JavaScript
import { ok, methodNotAllowed } from 'next-basics';
|
|
|
|
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,
|
|
loginDisabled: !!process.env.DISABLE_LOGIN,
|
|
adminDisabled: !!process.env.DISABLE_ADMIN,
|
|
uiDisabled: !!process.env.DISABLE_UI,
|
|
});
|
|
}
|
|
|
|
return methodNotAllowed(res);
|
|
};
|