@@ -20,13 +20,13 @@ export interface ServiceRouter<
20
20
SLocals extends AnyServiceLocals = ServiceLocals < ConfigurationSchema > ,
21
21
RLocals extends RequestLocals = RequestLocals ,
22
22
> {
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 ;
31
31
use ( ...handlers : ServiceHandler < SLocals , RLocals > [ ] ) : void ;
32
32
}
0 commit comments