File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ function defineDynamicClass(): {
10
10
}
11
11
12
12
class Pico extends defineDynamicClass ( ) {
13
- private routes : {
13
+ private r : {
14
14
pattern : URLPattern
15
15
method : string
16
16
handler : Handler
@@ -30,7 +30,7 @@ class Pico extends defineDynamicClass() {
30
30
method : method . toLowerCase ( ) ,
31
31
handler,
32
32
}
33
- this . routes . push ( route )
33
+ this . r . push ( route )
34
34
return this
35
35
}
36
36
@@ -39,7 +39,7 @@ class Pico extends defineDynamicClass() {
39
39
url : string
40
40
) : { handler : Handler ; result : URLPatternURLPatternResult } {
41
41
method = method . toLowerCase ( )
42
- for ( const route of this . routes ) {
42
+ for ( const route of this . r ) {
43
43
const match = route . pattern . exec ( url )
44
44
if ( ( match && route . method === 'all' ) || ( match && route . method === method ) ) {
45
45
return { handler : route . handler , result : match }
You can’t perform that action at this time.
0 commit comments