sdebacker / TypiCMS

Multilingual CMS built with Laravel 4.2
MIT License
474 stars 119 forks source link

How to add own route #45

Closed elvendor closed 10 years ago

elvendor commented 10 years ago

Hello! I want to add my route without any controller or module, just want run a Closure in route, for example '/currency/usd'. As I can see in code, every request that is not 'admin' processed by Pages module, and even when add my route to app/routes.php file, my request ends up with 404, because I don't have page with that route name.

Any ideas how to deal with that? Thanks in advance

sdebacker commented 10 years ago

You can add it to /TypiCMS/Modules/Pages/routes.php before the Route::get('{uri}')

elvendor commented 10 years ago

Works! Thank you!