- Vue 3 + Vite + Tailwind 4 frontend with synthwave aesthetic - Hono backend on port 9100 with SQLite/Drizzle - Procedural pixel-art sprite generator (48x48, 8 animation states) - Kaplay fight scene with punch/kick/special/knockback/KO animations - 12 mock bots across 6 tiers with Elo rating system - 9 challenge types, 10 fight arenas with modifiers - Fight replay with staggered battle log and ~1 min timing - Sprite preview page at /sprites Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
16 lines
441 B
TypeScript
16 lines
441 B
TypeScript
import { Hono } from 'hono'
|
|
import { cors } from 'hono/cors'
|
|
import { logger } from 'hono/logger'
|
|
import { botsRouter } from './routes/bots.js'
|
|
import { fightsRouter } from './routes/fights.js'
|
|
|
|
export const app = new Hono()
|
|
|
|
app.use('*', logger())
|
|
app.use('/api/*', cors({ origin: '*' }))
|
|
|
|
app.get('/api/health', (c) => c.json({ status: 'ok', name: 'botfights' }))
|
|
|
|
app.route('/api/bots', botsRouter)
|
|
app.route('/api/fights', fightsRouter)
|