From 38e4b0b9d6c5adb4b90f90cd3ec845f12396cfd9 Mon Sep 17 00:00:00 2001 From: Siarhei Fedartsou Date: Sat, 29 Oct 2022 13:26:40 +0200 Subject: [PATCH] Implement NodeJS based server fully replicating osrm-routed --- routed-js/routed.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/routed-js/routed.js b/routed-js/routed.js index a9a021cff..d4deb82d1 100755 --- a/routed-js/routed.js +++ b/routed-js/routed.js @@ -106,9 +106,7 @@ async function main() { reply.type('application/x-flatbuffers;schema=osrm.engine.api.fbresult').code(200); break; } - const result = await handler.handle(coordinates, query, format); - // result['code'] = 'Ok'; - return result; + return handler.handle(coordinates, query, format); } catch (e) { reply.code(400);