- Preparing search index...
- The search index is not available
hoosat-create
HoosatRouter: { Delete: ((path,
handler) => void); Get: ((path,
handler) => void); Middleware: ((handler) => void); Post: ((path,
handler) => void); Put: ((path,
handler) => void); Route: ((method,
path,
handler) => void); UseRouter: ((newRouter) => void); routes: HoosatRoute[]; }
Type declaration
-
Delete: ((path, handler) => void)
-
- (path, handler): void
-
Returns void
-
Get: ((path, handler) => void)
-
- (path, handler): void
-
Returns void
-
Middleware: ((handler) => void)
-
- (handler): void
-
Returns void
-
Post: ((path, handler) => void)
-
- (path, handler): void
-
Returns void
-
Put: ((path, handler) => void)
-
- (path, handler): void
-
Returns void
-
Route: ((method, path, handler) => void)
-
- (method, path, handler): void
-
Parameters
-
method: string
-
path: string
-
Returns void
-
UseRouter: ((newRouter) => void)
-
- (newRouter): void
-
Returns void
-
Represents the Hoosat router with various route handling methods.