Configuration
Configuration
addFormat()— Registers a new MIME type in your Wheels application for use with responding to multiple formats. This is helpful when ycollection()— Defines a collection route in your Wheels application. Collection routes operate on a set of resources and do not requirconstraints()— Defines variable patterns for route parameters when setting up routes using the Wheels mapper(). This allows you to restcontroller()— The controller() function in Wheels is used to define routes that point to a specific controller. However, it is considedelete()— Create a route that matches a URL requiring an HTTPDELETEmethod. We recommend using this matcher to exposend()— Call this to end a nested routing block or the entire route configuration. This method is chained on a sequence of routiget()— Create a route that matches a URL requiring an HTTPGETmethod. We recommend only using this matcher to expget()— Returns the current value of a Wheels configuration setting or the default value for a specific function argument. It camapper()— Returns the mapper object used to configure your application’s routes. Usually you will use this method inapp/conmember()— Scope routes within a nested resource which require use of the primary key as part of the URL pattern;namespace()— The namespace() function in Wheels is used to group controllers and routes under a specific namespace (subfolder/packagepackage()— Scopes the controllers for any routes defined inside its block to a specific subfolder (package) without adding the packpatch()— Create a route that matches a URL requiring an HTTPPATCHmethod. We recommend using this matcher to exposepost()— Create a route that matches a URL requiring an HTTPPOSTmethod. We recommend using this matcher to exposeput()— Create a route that matches a URL requiring an HTTPPUTmethod. We recommend using this matcher to expose aresource()— Create a group of routes that exposes actions for manipulating a singular resource. A singular resource exposes URL pattresources()— Create a group of routes that exposes actions for manipulating a collection of resources. A plural resource exposes URLroot()— Defines a route that matches the root of the current context. This could be the root of the entire application (like thescope()— The scope() function in Wheels is used to define a block of routes that share common parameters such as controller, packset()— Used to configure global settings or set default argument values for Wheels functions. It can be applied to core functiowildcard()— Automatically generates dynamic routes for your controllers using placeholders like [controller], [action], and optional