@tinyhttp/router
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -39,3 +39,2 @@ export declare type NextFunction = (err?: any) => void; | ||
apps: Record<string, App>; | ||
route(path: string): App; | ||
get(...args: RouterMethodParams<Req, Res>): this; | ||
@@ -42,0 +41,0 @@ post(...args: RouterMethodParams<Req, Res>): this; |
@@ -68,7 +68,2 @@ /* HELPER TYPES */ | ||
} | ||
route(path) { | ||
const router = new Router(); | ||
this.use(path, router); | ||
return router; | ||
} | ||
get(...args) { | ||
@@ -75,0 +70,0 @@ pushMiddleware(this.middleware)({ |
{ | ||
"name": "@tinyhttp/router", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Router for tinyhttp", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34291
1101