24 lines
467 B
TypeScript
24 lines
467 B
TypeScript
import { Hono } from 'hono'
|
|
import { IndexPage } from './examples/index'
|
|
import { ProfileExamplesPage } from './examples/profile'
|
|
import { ButtonExamplesPage } from './examples/button'
|
|
|
|
const app = new Hono()
|
|
|
|
app.get('/', (c) => {
|
|
return c.html(<IndexPage />)
|
|
})
|
|
|
|
app.get('/profile', (c) => {
|
|
return c.html(<ProfileExamplesPage />)
|
|
})
|
|
|
|
app.get('/buttons', (c) => {
|
|
return c.html(<ButtonExamplesPage />)
|
|
})
|
|
|
|
export default {
|
|
port: 3300,
|
|
fetch: app.fetch,
|
|
}
|