diff --git a/http_server.ts b/http_server.ts index b7f35eb..4e7ad9e 100644 --- a/http_server.ts +++ b/http_server.ts @@ -118,7 +118,7 @@ export class HTTPServer { const routeParamsMap: RouteParam[] = extractRouteParams(route.path); const routeSegments: string[] = filepath.split("/"); routeRequest.pathParams = routeParamsMap.reduce( - (accum: { [key: string]: string | number }, curr: RouteParam) => { + (accum: { [key: string]: string }, curr: RouteParam) => { return { ...accum, [curr.paramKey]: routeSegments[curr.idx],