upgrade hype in templates
This commit is contained in:
parent
dfdd5c89b4
commit
079c13e311
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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": "*"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user