Wednesday 20 February 2019

Exploring express application

app.locals: Set Application level data
app.mountPath: Gives the patterns on which this sub app is mounted
mount event: Get the event when the app is mounted
app.all(path, callback [, callback ...]): Match to all http verbs
app.delete(path, callback [, callback ...]): Route delete requests
app.set(name, value): Set application property
app.get(name): Return the value associated with this property
app.disable(name): Disable the boolean property
app.disabled(name): Return true if this property is disabled
app.enable(name): Enable the property
app.enabled(name): Returns true if the setting name is enabled
app.engine(ext, callback): Register template engine
app.get(path, callback [, callback ...]): Process get request
app.listen([port[, host[, backlog]]][, callback]): Listen application on this port
app.METHOD(path, callback [, callback ...]): Route http request to specific method
Route parameters
app.param([name], callback): Add callbacks to the route parameters
app.path(): Get canonical path of the application
app.post(path, callback [, callback ...]): Route post requests
app.put(path, callback [, callback ...]): Route put requests
app.route(path): Return the router instance for this path
app.use([path,] callback [, callback...]): Mount middleware functions to this path
Error handling middleware

Previous                                                 Next                                                 Home

No comments:

Post a Comment