feat: admin dashboard for THE CREATOR

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dorian
2026-03-09 00:12:36 +00:00
co-authored by Claude Opus 4.6
parent e3a4299dae
commit 2170e9275c
4 changed files with 362 additions and 0 deletions
+2
View File
@@ -11,6 +11,7 @@ import { docsRouter } from './routes/docs.js'
import { betsRouter } from './routes/bets.js'
import { paymentsRouter } from './routes/payments.js'
import { tournamentsRouter } from './routes/tournaments.js'
import { adminRouter } from './routes/admin.js'
import { rateLimit } from './middleware/rate-limit.js'
import { existsSync, readFileSync } from 'fs'
@@ -60,6 +61,7 @@ app.route('/api/docs', docsRouter)
app.route('/api/bets', betsRouter)
app.route('/api/payments', paymentsRouter)
app.route('/api/tournaments', tournamentsRouter)
app.route('/api/admin', adminRouter)
// In production, serve the frontend SPA
const __dirname = dirname(fileURLToPath(import.meta.url))