WLD> # this has to be the last option in order to work with unprefixed routes
WLD> get '/:slug', to: 'pages#show', constraints: lambda {
WLD> |request| Page.pages.include? request.path_parameters[:slug] }
WLD>
WLD> get "*any", via: :all, to: "errors#not_found"