File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " strontium" ,
3
- "version" : " 2.4.1 " ,
3
+ "version" : " 2.4.2 " ,
4
4
"description" : " Strontium is a TypeScript toolkit for High Performance API servers built for Production not Projects." ,
5
5
"main" : " lib/src/index.js" ,
6
6
"types" : " lib/src/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export class FastifyServer implements Process {
40
40
)
41
41
break
42
42
case "PATCH" :
43
- this . server . post (
43
+ this . server . patch (
44
44
route . route ,
45
45
this . requestHandler (
46
46
route . endpointController ,
@@ -50,7 +50,7 @@ export class FastifyServer implements Process {
50
50
)
51
51
break
52
52
case "PUT" :
53
- this . server . post (
53
+ this . server . put (
54
54
route . route ,
55
55
this . requestHandler (
56
56
route . endpointController ,
@@ -60,7 +60,7 @@ export class FastifyServer implements Process {
60
60
)
61
61
break
62
62
case "DELETE" :
63
- this . server . post (
63
+ this . server . delete (
64
64
route . route ,
65
65
this . requestHandler (
66
66
route . endpointController ,
@@ -70,7 +70,7 @@ export class FastifyServer implements Process {
70
70
)
71
71
break
72
72
case "OPTIONS" :
73
- this . server . post (
73
+ this . server . options (
74
74
route . route ,
75
75
this . requestHandler (
76
76
route . endpointController ,
You can’t perform that action at this time.
0 commit comments