stuff
This commit is contained in:
@@ -14,6 +14,7 @@ import { paymentsRouter } from './routes/payments.js'
|
||||
import { tournamentsRouter } from './routes/tournaments.js'
|
||||
import { adminRouter } from './routes/admin.js'
|
||||
import { statsRouter } from './routes/stats.js'
|
||||
import { arcadeRouter } from './routes/arcade.js'
|
||||
import { rateLimit } from './middleware/rate-limit.js'
|
||||
|
||||
import { existsSync, readFileSync } from 'fs'
|
||||
@@ -103,6 +104,7 @@ app.route('/api/payments', paymentsRouter)
|
||||
app.route('/api/tournaments', tournamentsRouter)
|
||||
app.route('/api/admin', adminRouter)
|
||||
app.route('/api/stats', statsRouter)
|
||||
app.route('/api/arcade', arcadeRouter)
|
||||
|
||||
// In production, serve the frontend SPA
|
||||
const __dirname = dirname(fileURLToPath(import.meta.url))
|
||||
|
||||
Reference in New Issue
Block a user