@@ -257,58 +257,58 @@ export class App<State> {
257257 route : MaybeLazy < Route < State > > ,
258258 config ?: RouteConfig ,
259259 ) : this {
260- this . #commands. push ( newRouteCmd ( path , route , config , false ) ) ;
260+ this . #commands. push ( newRouteCmd ( path , route , config , true ) ) ;
261261 return this ;
262262 }
263263
264264 /**
265265 * Add middlewares for GET requests at the specified path.
266266 */
267267 get ( path : string , ...middlewares : MaybeLazy < Middleware < State > > [ ] ) : this {
268- this . #commands. push ( newHandlerCmd ( "GET" , path , middlewares , false ) ) ;
268+ this . #commands. push ( newHandlerCmd ( "GET" , path , middlewares , true ) ) ;
269269 return this ;
270270 }
271271 /**
272272 * Add middlewares for POST requests at the specified path.
273273 */
274274 post ( path : string , ...middlewares : MaybeLazy < Middleware < State > > [ ] ) : this {
275- this . #commands. push ( newHandlerCmd ( "POST" , path , middlewares , false ) ) ;
275+ this . #commands. push ( newHandlerCmd ( "POST" , path , middlewares , true ) ) ;
276276 return this ;
277277 }
278278 /**
279279 * Add middlewares for PATCH requests at the specified path.
280280 */
281281 patch ( path : string , ...middlewares : MaybeLazy < Middleware < State > > [ ] ) : this {
282- this . #commands. push ( newHandlerCmd ( "PATCH" , path , middlewares , false ) ) ;
282+ this . #commands. push ( newHandlerCmd ( "PATCH" , path , middlewares , true ) ) ;
283283 return this ;
284284 }
285285 /**
286286 * Add middlewares for PUT requests at the specified path.
287287 */
288288 put ( path : string , ...middlewares : MaybeLazy < Middleware < State > > [ ] ) : this {
289- this . #commands. push ( newHandlerCmd ( "PUT" , path , middlewares , false ) ) ;
289+ this . #commands. push ( newHandlerCmd ( "PUT" , path , middlewares , true ) ) ;
290290 return this ;
291291 }
292292 /**
293293 * Add middlewares for DELETE requests at the specified path.
294294 */
295295 delete ( path : string , ...middlewares : MaybeLazy < Middleware < State > > [ ] ) : this {
296- this . #commands. push ( newHandlerCmd ( "DELETE" , path , middlewares , false ) ) ;
296+ this . #commands. push ( newHandlerCmd ( "DELETE" , path , middlewares , true ) ) ;
297297 return this ;
298298 }
299299 /**
300300 * Add middlewares for HEAD requests at the specified path.
301301 */
302302 head ( path : string , ...middlewares : MaybeLazy < Middleware < State > > [ ] ) : this {
303- this . #commands. push ( newHandlerCmd ( "HEAD" , path , middlewares , false ) ) ;
303+ this . #commands. push ( newHandlerCmd ( "HEAD" , path , middlewares , true ) ) ;
304304 return this ;
305305 }
306306
307307 /**
308308 * Add middlewares for all HTTP verbs at the specified path.
309309 */
310310 all ( path : string , ...middlewares : MaybeLazy < Middleware < State > > [ ] ) : this {
311- this . #commands. push ( newHandlerCmd ( "ALL" , path , middlewares , false ) ) ;
311+ this . #commands. push ( newHandlerCmd ( "ALL" , path , middlewares , true ) ) ;
312312 return this ;
313313 }
314314
0 commit comments