aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/index.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/server/index.ts b/server/index.ts
index cdc57d5..5799881 100644
--- a/server/index.ts
+++ b/server/index.ts
@@ -15,5 +15,14 @@ const SERVER_PORT = process.env.SERVER_PORT || 3001;
app.use(dailyRouter);
app.use(selectRouter);
+const enableDailyMusicVideo = process.env.ENABLE_DAILY_MUSIC_VIDEO === "true";
+
+app.route("/info")
+ .get((_, res) => {
+ res.json({
+ dailyMusic: true, // for now assume daily heardle is always playable (bare minimum for instance)
+ dailyMV: enableDailyMusicVideo, // signify to worker whether daily MV guessing should be ran
+ });
+ });
app.listen(SERVER_PORT, () => console.log(`Server running on :${SERVER_PORT}`));
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage