17 lines
293 B
TypeScript
17 lines
293 B
TypeScript
import { Hype } from '@because/hype'
|
|
|
|
const app = new Hype
|
|
|
|
app.get('/', c => c.html(<h1>Hi there!</h1>))
|
|
|
|
// Test crash - remove after testing
|
|
setTimeout(() => {
|
|
console.log('About to crash...')
|
|
throw new Error('Test crash!')
|
|
}, 3000)
|
|
|
|
const apps = () => {
|
|
}
|
|
|
|
export default app.defaults
|