BishopFox / jsluice

Extract URLs, paths, secrets, and other interesting bits from JavaScript
MIT License
1.43k stars 96 forks source link

Support for multiple urls in url matchers #20

Closed zerodivisi0n closed 7 months ago

zerodivisi0n commented 1 year ago

Card

Currently there is no way to return multiple urls from URLMatcher. So it's impossible to get all urls from the following code:

const n = i.Z.resource("api/users", {
        create: {
            method: "POST"
        },
        get: {
            method: "GET",
            url: "{userId}"
        },
        list: {
            method: "POST",
            url: "list"
        },
        update: {
            method: "POST",
            url: "update"
        },
        get: {
            method: "DELETE",
            url: "{userId}"
        },
);

Details

In this PR I added ability to return multiple urls from URLMatcher, but without maintaining backward compatibility. More on this in code comments.