limoncello-php / app

Quick start JSON API application
MIT License
83 stars 7 forks source link

Catch-all / wildcard routes #66

Open dreamsbond opened 4 years ago

dreamsbond commented 4 years ago

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

dreamsbond commented 4 years ago

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