Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dawkaka committed Jul 23, 2024
2 parents 11059c3 + f7ff2e6 commit ee0ae03
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## 2.4.4 - 2024-07-22

## 2.4.3 - 2024-07-15

## 1.2.0 - 2023-10-13
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apitoolkit-express",
"version": "2.4.3",
"version": "2.4.4",
"description": "Nodejs SDK for the API Toolkit Monitoring and Reliability platform written in Typescript",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/apitoolkit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,12 +316,12 @@ export class APIToolkit {

export const findMatchedRoute = (app: Application, method: string, url: string): string => {
try {
let path = url.split('?')[0];
const path = url.split('?')[0];
const stack = app._router.stack;
let final_path = '';

const gatherRoutes = (stack: any, build_path: string, path: string) => {
for (let layer of stack) {
for (const layer of stack) {
if (layer.route) {
if (path.startsWith(layer.path)) {
const route = layer.route;
Expand Down

0 comments on commit ee0ae03

Please sign in to comment.