feat: wire hono app and start server

This commit is contained in:
devilreef 2026-04-29 12:14:18 +06:00
parent c16d028983
commit 19fa4f1fcb
Signed by: devilreef
SSH key fingerprint: SHA256:UZisRr4iuXx+IhkbZnR655L2RWAT6o2rgbGv5F/6m3Y

View file

@ -1,3 +1,15 @@
import { serve } from '@hono/node-server'
import { Hono } from 'hono'
import { health } from '@/routes/health.js'
import { miniapp } from '@/routes/miniapp.js'
import { sync } from '@/routes/sync.js'
import { config } from '@/shared/config.js'
console.log(`starting in ${config.mode} mode...`)
const app = new Hono()
app.route('/', health)
app.route('/', miniapp)
app.route('/', sync)
serve({ fetch: app.fetch, port: config.port }, ({ port }) => {
console.log(`arcanesync listening on :${port} (${config.mode})`)
})