takes icon indicating copy to clipboard operation
takes copied to clipboard

Wrong url discovery on FkRegex

Open baudoliver7 opened this issue 2 years ago • 1 comments

I'm not able to find url /api/module/used in this case:

new FkRegex(
    "/api/module/used",
    new TkFork(
        new FkMethods("GET", new TkGetModulesUsedByCompany(source))
    )
),
new FkRegex(
    "/api/module/used-by-user",
    new TkFork(
        new FkMethods("GET", new TkGetAllModulesUsedByUser(source))
    )
)

It looks like /api/module/used-by-user hides the first one.

baudoliver7 avatar May 29 '23 09:05 baudoliver7

@baudoliver7 this example works fine

new FtBasic(
            new TkFork(
                new FkRegex(
                        "/api/module/used",
                        new TkFork(
                                new FkMethods("GET", new RsText("used"))
                        )
                ),
                new FkRegex(
                        "/api/module/used-by-user",
                        new TkFork(
                                new FkMethods("GET", new RsText("used-by-user"))
                        )
                )
            ),
            8080
        ).start(Exit.NEVER);

If everything is fine, can you close the issue then please? I am choosing the tasks to solve, but too many issues confuse me quite easily(and most likely many others too)

tjann7 avatar Nov 06 '24 12:11 tjann7