Skip to content

Commit 491e5b0

Browse files
authored
Merge branch 'main' into develop
2 parents bf0f4d2 + 33901a2 commit 491e5b0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/index.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ import { generateInviteLink } from "./controllers/generateDiscordInvite";
2222
import { sendProfileBlockedMessage } from "./controllers/profileHandler";
2323
import { sendTaskUpdatesHandler } from "./controllers/taskUpdatesHandler";
2424

25+
import config from "./../config/config";
26+
2527
const router = Router();
2628

2729
router.get("/", async () => {
@@ -60,6 +62,15 @@ router.post("/profile/blocked", sendProfileBlockedMessage);
6062

6163
router.post("/task/update", sendTaskUpdatesHandler);
6264

65+
router.get("/ankush", async (request, env, ctx: ExecutionContext) => {
66+
ctx.waitUntil(send(env));
67+
68+
const url = config(env).TRACKING_CHANNEL_URL;
69+
70+
return new JSONResponse(`CURRENT_ENVIRONMENT: ${env.CURRENT_ENVIRONMENT}, tracking url - ${url}`, { status: 200 });
71+
});
72+
73+
6374
router.post("/", async (request, env, ctx: ExecutionContext) => {
6475
const message: discordMessageRequest = await request.json();
6576

0 commit comments

Comments
 (0)