router: true
This commit is contained in:
parent
85fa79518c
commit
a7ad3a5c1d
|
|
@ -24,6 +24,7 @@ export type HypeProps = {
|
|||
reset?: boolean
|
||||
prettyHTML?: boolean
|
||||
layout?: boolean
|
||||
router?: boolean
|
||||
}
|
||||
|
||||
export type SSEHandler<E extends Env> = (
|
||||
|
|
@ -44,7 +45,8 @@ export class Hype<
|
|||
super(props)
|
||||
|
||||
this.props = props ?? {}
|
||||
this.registerMiddleware()
|
||||
if (!this.router)
|
||||
this.registerMiddleware()
|
||||
}
|
||||
|
||||
sse(path: string, handler: SSEHandler<E>) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user