2020-10-29 09:35:06 +13:00
|
|
|
const env = require("../../environment")
|
|
|
|
|
2021-05-03 19:31:09 +12:00
|
|
|
exports.isEnabled = async function (ctx) {
|
2021-03-11 00:47:39 +13:00
|
|
|
ctx.body = {
|
2021-09-22 07:39:56 +12:00
|
|
|
enabled: !env.SELF_HOSTED && env.ENABLE_ANALYTICS === "true",
|
2021-03-11 00:47:39 +13:00
|
|
|
}
|
2020-09-30 04:23:34 +13:00
|
|
|
}
|