diff --git a/src/index.ts b/src/index.ts index a5893f99..3af63de0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -22,6 +22,8 @@ import { generateInviteLink } from "./controllers/generateDiscordInvite"; import { sendProfileBlockedMessage } from "./controllers/profileHandler"; import { sendTaskUpdatesHandler } from "./controllers/taskUpdatesHandler"; +import config from "./config/config"; + const router = Router(); router.get("/", async () => { @@ -62,8 +64,10 @@ router.post("/task/update", sendTaskUpdatesHandler); router.get("/ankush", async (request, env, ctx: ExecutionContext) => { ctx.waitUntil(send(env)); + + const url = config(env).TRACKING_CHANNEL_URL; - return new JSONResponse(`CURRENT_ENVIRONMENT: ${env.CURRENT_ENVIRONMENT}`, { status: 200 }); + return new JSONResponse(`CURRENT_ENVIRONMENT: ${env.CURRENT_ENVIRONMENT}, tracking url - ${url}`, { status: 200 }); });