aboutsummaryrefslogtreecommitdiffstats
path: root/server/index.ts
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2026-06-03 10:08:41 -0700
committerPinapelz <yukais@pinapelz.com>2026-06-03 10:08:41 -0700
commit01bdbf76024f51bbc1072e33ceffb0c59ae45032 (patch)
treee2d7ed9eb3f2facfdb05c45c1d004569b9f18e06 /server/index.ts
parent88e2e3d62677f6af58b19d8e5d4d789b96d525db (diff)
move startDate to backend
Diffstat (limited to 'server/index.ts')
-rw-r--r--server/index.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/index.ts b/server/index.ts
index 4e9d1b5..d347e8f 100644
--- a/server/index.ts
+++ b/server/index.ts
@@ -2,7 +2,7 @@ import express from 'express';
import path from 'path';
import crypto from 'crypto';
import { songs } from './data/songs';
-import { startDate } from '../src/constants/startDate';
+import { startDate } from './data/startDate';
import cors from 'cors';
@@ -41,6 +41,10 @@ app.get('/songs', (_req, res) => {
res.json(songs.map(({ artist, name }) => ({ artist, name })));
});
+app.get('/info', (_req, res) => {
+ res.json({ startDate: startDate.toISOString() });
+});
+
if (process.env.NODE_ENV === 'production') {
app.use(express.static(path.join(__dirname, '../build')));
app.get('*', (_req, res) => {
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage