app icon indicating copy to clipboard operation
app copied to clipboard

Catch-all / wildcard routes

Open dreamsbond opened this issue 5 years ago • 1 comments

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

dreamsbond avatar Apr 07 '20 15:04 dreamsbond


    /**
     * 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?

dreamsbond avatar Apr 08 '20 05:04 dreamsbond