The app.all() function is used to route all types of HTTP requests. Like if we have POST, GET, PUT, DELETE, etc.
|
The app.delete() function is used to route the HTTP DELETE requests to the path which is specified as a parameter with the callback functions being passed as a parameter.
|
The app.disable() function is used to set the boolean setting name to false. It is basically the shorthand for the app.set(name, false).
|
The app.disabled() function is used to return the bool values of the setting name. It returns true if the setting name is disabled and returns false if the setting name is not disabled.
|
The app.enable() function is used to set the boolean value i.e. name to true. It is basically the shorthand for the app.set(name, true) or app.set(name, false).
|
The app.enabled() function is used to return the bool values of the setting name. It returns true if the setting name is enabled and returns false if the setting name is not enabled.
|
The app.engine() function is used to register the given template engine callback as ext. By default the Express itself will require() the engine based on the file extension.
|
The app.get() function routes the HTTP GET Requests to the path which is being specified with the specified callback functions. Basically, it is intended for binding the middleware to your application.
|
The app.get() function routes the HTTP GET Requests to the path which is being specified with the specified callback functions. Basically, it is intended for binding the middleware to your application.
|
The app.listen() function is used to bind and listen to the connections on the specified host and port. This method is identical to Node’s http.Server.listen() method.
|
The app.METHOD() function is used to route an HTTP request, where METHOD is the HTTP method of the request, such as GET, PUT, POST, and so on, in lowercase
|
The app.param() function is used to add the callback triggers to route parameters. It is commonly used to check for the existence of the data requested related to the route parameter.
|
The app.path() function returns the canonical path of the app as a string. When mounting advanced apps, the behavior of this approach can become extremely complicated.
|
The app.post() function routes the HTTP POST requests to the specified path with the specified callback functions.
|
The app.put() function routes the HTTP PUT requests to the specified path with the specified callback functions.
|
The app.render() function is used to render the HTML of a view via the callback function. This function returns the HTML in the callback function.
|
The app.route() function 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).
|
The app.set() function is used to assign the setting name to value. You may store any value that you want, but certain names can be used to configure the behavior of the server.
|
The app.use() function is used to mount the specified middleware function(s) at the path which is being specified. It is mostly used to set up middleware for your application.
|