From e265c6496d0d272316719ada8f5eb3ebde3be0bc Mon Sep 17 00:00:00 2001 From: Akhmad Salafudin Date: Mon, 22 Aug 2022 09:43:12 +0700 Subject: [PATCH] fix(router): dynamic route not working on windows --- package.json | 2 +- src/Foundation/Http/Kernel.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b1fb8b7..bcb4c67 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lunox", - "version": "1.7.0", + "version": "1.7.1", "description": "Laravel-Flavoured NodeJs framework", "bin": { "lunox": "./bin/lunox.cjs" diff --git a/src/Foundation/Http/Kernel.ts b/src/Foundation/Http/Kernel.ts index dbb3456..89d9f72 100644 --- a/src/Foundation/Http/Kernel.ts +++ b/src/Foundation/Http/Kernel.ts @@ -156,7 +156,7 @@ class Kernel { ); server[route.method]( - path.join(route.uri), + route.uri, (req, res, next) => { ((req as any)._httpRequest as Request).setRouter(route); return next();