upgrade hype in templates

This commit is contained in:
Chris Wanstrath 2026-03-05 07:44:07 -08:00
parent dfdd5c89b4
commit 079c13e311
4 changed files with 4 additions and 8 deletions

View File

@ -1,8 +1,7 @@
import { Hype } from '@because/hype' import { Hype } from '@because/hype'
const app = new Hype() const app = new Hype({ ok: true })
app.get('/', c => c.text('$$APP_NAME$$')) app.get('/', c => c.text('$$APP_NAME$$'))
app.get('/ok', c => c.text('ok'))
export default app.defaults export default app.defaults

View File

@ -18,7 +18,7 @@
"typescript": "^5.9.2" "typescript": "^5.9.2"
}, },
"dependencies": { "dependencies": {
"@because/hype": "*", "@because/hype": "0.0.6",
"@because/forge": "*", "@because/forge": "*",
"@because/howl": "*" "@because/howl": "*"
} }

View File

@ -1,9 +1,8 @@
import { Hype } from '@because/hype' import { Hype } from '@because/hype'
const app = new Hype({ layout: false }) const app = new Hype({ layout: false, ok: true })
// custom routes go here // custom routes go here
// app.get("/my-custom-routes", (c) => c.text("wild, wild stuff")) // app.get("/my-custom-routes", (c) => c.text("wild, wild stuff"))
app.get('/ok', c => c.text('ok'))
export default app.defaults export default app.defaults

View File

@ -1,7 +1,5 @@
import { Hype } from '@because/hype' import { Hype } from '@because/hype'
const app = new Hype() const app = new Hype({ok: true})
app.get('/ok', c => c.text('ok'))
export default app.defaults export default app.defaults