Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong url discovery on FkRegex #1225

Open
baudoliver7 opened this issue May 29, 2023 · 1 comment
Open

Wrong url discovery on FkRegex #1225

baudoliver7 opened this issue May 29, 2023 · 1 comment

Comments

@baudoliver7
Copy link
Contributor

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.

@tjann7
Copy link

tjann7 commented Nov 6, 2024

@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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants