This method is like the standard app.METHOD() methods, except it matches all HTTP verbs.
This method is like the standard app.METHOD() methods, except it matches all HTTP verbs. It’s useful for mapping “global” logic for specific path prefixes or arbitrary matches. For example, if you put the following at the top of all other route definitions, it requires that all routes from that point on require authentication, and automatically load a user. Keep in mind that these callbacks do not have to act as end-points: loadUser can perform a task, then call next() to continue matching subsequent routes
app.all(path, callback [, callback ...])
Routes HTTP CONNECT requests to the specified path with the specified callback functions.
Routes HTTP CONNECT requests to the specified path with the specified callback functions. For more information, see the routing guide.
app.connect(path, callback [, callback ...])
Routes HTTP DELETE requests to the specified path with the specified callback functions.
Routes HTTP DELETE requests to the specified path with the specified callback functions. For more information, see the routing guide. You can provide multiple callback functions that behave just like middleware, except these callbacks can invoke next('route') to bypass the remaining route callback(s). You can use this mechanism to impose pre-conditions on a route, then pass control to subsequent routes if there’s no reason to proceed with the current route.
app.delete(path, callback [, callback ...])
Sets the Boolean setting name to false, where name is one of the properties from the app settings table.
Sets the Boolean setting name to false, where name is one of the properties from the app settings table. Calling app.set('foo', false) for a Boolean property is the same as calling app.disable('foo').
app.disable(name)
Returns true if the Boolean setting name is disabled (false), where name is one of the properties from the app settings table.
Returns true if the Boolean setting name is disabled (false), where name is one of the properties from the app settings table.
app.disabled(name)
Sets the Boolean setting name to true, where name is one of the properties from the app settings table.
Sets the Boolean setting name to true, where name is one of the properties from the app settings table. Calling app.set('foo', true) for a Boolean property is the same as calling app.enable('foo').
app.enable(name)
Returns true if the setting name is enabled (true), where name is one of the properties from the app settings table.
Returns true if the setting name is enabled (true), where name is one of the properties from the app settings table.
app.enabled(name)
Registers the given template engine callback as ext.
Registers the given template engine callback as ext. By default, Express will require() the engine based on the file extension. For example, if you try to render a “foo.jade” file, Express invokes the following internally, and caches the require() on subsequent calls to increase performance.
app.engine(ext, callback)
Returns the value of name app setting, where name is one of strings in the app settings table.
Returns the value of name app setting, where name is one of strings in the app settings table.
app.get(name)
Routes HTTP GET requests to the specified path with the specified callback functions.
Routes HTTP GET requests to the specified path with the specified callback functions. For more information, see the routing guide.
You can provide multiple callback functions that behave just like middleware, except these callbacks can invoke next('route') to bypass the remaining route callback(s). You can use this mechanism to impose pre-conditions on a route, then pass control to subsequent routes if there’s no reason to proceed with the current route.
app.get(path, callback [, callback ...])
Routes HTTP HEAD requests to the specified path with the specified callback functions.
Routes HTTP HEAD requests to the specified path with the specified callback functions. For more information, see the routing guide.
app.head(path, callback [, callback ...])
Binds and listens for connections on the specified host and port.
Binds and listens for connections on the specified host and port. This method is identical to Node’s http.Server.listen().
Binds and listens for connections on the specified host and port.
Binds and listens for connections on the specified host and port. This method is identical to Node’s http.Server.listen().
Binds and listens for connections on the specified host and port.
Binds and listens for connections on the specified host and port. This method is identical to Node’s http.Server.listen().
Binds and listens for connections on the specified host and port.
Binds and listens for connections on the specified host and port. This method is identical to Node’s http.Server.listen().
Binds and listens for connections on the specified host and port.
Binds and listens for connections on the specified host and port. This method is identical to Node’s http.Server.listen().
Binds and listens for connections on the specified host and port.
Binds and listens for connections on the specified host and port. This method is identical to Node’s http.Server.listen().
app.listen(port, [hostname], [backlog], [callback])
The app.locals object has properties that are local variables within the application.
The app.locals object has properties that are local variables within the application.
The app.mountpath property contains one or more path patterns on which a sub-app was mounted.
The app.mountpath property contains one or more path patterns on which a sub-app was mounted.
Routes HTTP OPTIONS requests to the specified path with the specified callback functions.
Routes HTTP OPTIONS requests to the specified path with the specified callback functions. For more information, see the routing guide.
app.options(path, callback [, callback ...])
Add callback triggers to route parameters, where name is the name of the parameter or an array of them, and callback is the callback function.
Add callback triggers to route parameters, where name is the name of the parameter or an array of them, and callback is the callback function. The parameters of the callback function are the request object, the response object, the next middleware, the value of the parameter and the name of the parameter, in that order.
If name is an array, the callback trigger is registered for each parameter declared in it, in the order in which they are declared. Furthermore, for each declared parameter except the last one, a call to next inside the callback will call the callback for the next declared parameter. For the last parameter, a call to next will call the next middleware in place for the route currently being processed, just like it would if name were just a string.
app.param([name], callback)
Routes HTTP PATCH requests to the specified path with the specified callback functions.
Routes HTTP PATCH requests to the specified path with the specified callback functions. For more information, see the routing guide.
app.patch(path, callback [, callback ...])
Returns the canonical path of the app, a string.
Returns the canonical path of the app, a string.
app.path()
Routes HTTP POST requests to the specified path with the specified callback functions.
Routes HTTP POST requests to the specified path with the specified callback functions. For more information, see the routing guide.
You can provide multiple callback functions that behave just like middleware, except that these callbacks can invoke next('route') to bypass the remaining route callback(s). You can use this mechanism to impose pre-conditions on a route, then pass control to subsequent routes if there’s no reason to proceed with the current route.
app.post(path, callback [, callback ...])
Routes HTTP PUT requests to the specified path with the specified callback functions.
Routes HTTP PUT requests to the specified path with the specified callback functions. For more information, see the routing guide.
You can provide multiple callback functions that behave just like middleware, except that these callbacks can invoke next('route') to bypass the remaining route callback(s). You can use this mechanism to impose pre-conditions on a route, then pass control to subsequent routes if there’s no reason to proceed with the current route.
app.put(path, callback [, callback ...])
Returns the rendered HTML of a view via the callback function.
Returns the rendered HTML of a view via the callback function. It accepts an optional parameter that is an object containing local variables for the view. It is like res.render(), except it cannot send the rendered view to the client on its own.
app.render(view, [locals], callback)
Returns an instance of a single route, which you can then use to handle HTTP verbs with optional middleware.
Returns an instance of a single route, which you can then use to handle HTTP verbs with optional middleware. Use app.route() to avoid duplicate route names (and thus typo errors).
app.route(path)
Assigns setting name to value, where name is one of the properties from the app settings table.
Assigns setting name to value, where name is one of the properties from the app settings table. Calling app.set('foo', true) for a Boolean property is the same as calling app.enable('foo'). Similarly, calling app.set('foo', false) for a Boolean property is the same as calling app.disable('foo'). Retrieve the value of a setting with app.get().
app.set(name, value)
Routes HTTP TRACE requests to the specified path with the specified callback functions.
Routes HTTP TRACE requests to the specified path with the specified callback functions. For more information, see the routing guide.
app.trace(path, callback [, callback ...])
Mounts the specified middleware function or functions at the specified path.
Mounts the specified middleware function or functions at the specified path. If path is not specified, it defaults to “/”.
app.use([path,] function [, function...])
Mounts the specified middleware function or functions at the specified path.
Mounts the specified middleware function or functions at the specified path. If path is not specified, it defaults to “/”.
app.use([path,] function [, function...])
Mounts the specified middleware function or functions at the specified path.
Mounts the specified middleware function or functions at the specified path. If path is not specified, it defaults to “/”.
app.use([path,] function [, function...])
Mounts the specified middleware function or functions at the specified path.
Mounts the specified middleware function or functions at the specified path. If path is not specified, it defaults to “/”.
app.use([path,] function [, function...])
The app object conventionally denotes the Express application. Create it by calling the top-level express() function exported by the Express module.
http://expressjs.com/en/api.html