Skip to content

Commit 936f5aa

Browse files
committed
Fix major issue with route assignment
1 parent 54d5e3b commit 936f5aa

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "strontium",
3-
"version": "2.4.1",
3+
"version": "2.4.2",
44
"description": "Strontium is a TypeScript toolkit for High Performance API servers built for Production not Projects.",
55
"main": "lib/src/index.js",
66
"types": "lib/src/index.d.ts",

src/http/drivers/FastifyServer.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class FastifyServer implements Process {
4040
)
4141
break
4242
case "PATCH":
43-
this.server.post(
43+
this.server.patch(
4444
route.route,
4545
this.requestHandler(
4646
route.endpointController,
@@ -50,7 +50,7 @@ export class FastifyServer implements Process {
5050
)
5151
break
5252
case "PUT":
53-
this.server.post(
53+
this.server.put(
5454
route.route,
5555
this.requestHandler(
5656
route.endpointController,
@@ -60,7 +60,7 @@ export class FastifyServer implements Process {
6060
)
6161
break
6262
case "DELETE":
63-
this.server.post(
63+
this.server.delete(
6464
route.route,
6565
this.requestHandler(
6666
route.endpointController,
@@ -70,7 +70,7 @@ export class FastifyServer implements Process {
7070
)
7171
break
7272
case "OPTIONS":
73-
this.server.post(
73+
this.server.options(
7474
route.route,
7575
this.requestHandler(
7676
route.endpointController,

0 commit comments

Comments
 (0)