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

Catch-all / wildcard routes #66

Open
dreamsbond opened this issue Apr 7, 2020 · 1 comment
Open

Catch-all / wildcard routes #66

dreamsbond opened this issue Apr 7, 2020 · 1 comment

Comments

@dreamsbond
Copy link

Curious, if limoncello originally support catch-all / wildcard route?

@dreamsbond
Copy link
Author

    /**
     * This middleware will be executed on every request even when no matching route is found.
     *
     * @return string[]
     */
    public static function getMiddleware(): array
    {
        return [
            CookieAuth::class,
        ];
    }

is the getMiddleware() the appropriate entry point for handling catch-all route?

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

1 participant