@@ -20,13 +20,13 @@ export interface ServiceRouter<
2020 SLocals extends AnyServiceLocals = ServiceLocals < ConfigurationSchema > ,
2121 RLocals extends RequestLocals = RequestLocals ,
2222> {
23- all ( path : string , ...handlers : ServiceHandler < SLocals , RLocals > [ ] ) : void ;
24- get ( path : string , ...handlers : ServiceHandler < SLocals , RLocals > [ ] ) : void ;
25- post ( path : string , ...handlers : ServiceHandler < SLocals , RLocals > [ ] ) : void ;
26- put ( path : string , ...handlers : ServiceHandler < SLocals , RLocals > [ ] ) : void ;
27- delete ( path : string , ...handlers : ServiceHandler < SLocals , RLocals > [ ] ) : void ;
28- patch ( path : string , ...handlers : ServiceHandler < SLocals , RLocals > [ ] ) : void ;
29- options ( path : string , ...handlers : ServiceHandler < SLocals , RLocals > [ ] ) : void ;
30- head ( path : string , ...handlers : ServiceHandler < SLocals , RLocals > [ ] ) : void ;
23+ all ( path : string | RegExp , ...handlers : ServiceHandler < SLocals , RLocals > [ ] ) : void ;
24+ get ( path : string | RegExp , ...handlers : ServiceHandler < SLocals , RLocals > [ ] ) : void ;
25+ post ( path : string | RegExp , ...handlers : ServiceHandler < SLocals , RLocals > [ ] ) : void ;
26+ put ( path : string | RegExp , ...handlers : ServiceHandler < SLocals , RLocals > [ ] ) : void ;
27+ delete ( path : string | RegExp , ...handlers : ServiceHandler < SLocals , RLocals > [ ] ) : void ;
28+ patch ( path : string | RegExp , ...handlers : ServiceHandler < SLocals , RLocals > [ ] ) : void ;
29+ options ( path : string | RegExp , ...handlers : ServiceHandler < SLocals , RLocals > [ ] ) : void ;
30+ head ( path : string | RegExp , ...handlers : ServiceHandler < SLocals , RLocals > [ ] ) : void ;
3131 use ( ...handlers : ServiceHandler < SLocals , RLocals > [ ] ) : void ;
3232}
0 commit comments