diff options
Diffstat (limited to 'server/index.ts')
| -rw-r--r-- | server/index.ts | 9 |
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}`)); |
