1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-12-22 10:08:54 +00:00

App Properties

This commit is contained in:
Zoheb Alli Khan 2021-06-03 12:04:27 +05:30
parent 9731e6841b
commit 859556dc1f

View File

@ -11,7 +11,7 @@ const app = express(); // Intializing the imported express application
* http://expressjs.com/en/api.html#express.json
* ******************************************************************************************* */
Methods;
```Methods```;
express.json([options]);
@ -97,3 +97,10 @@ type // This is used to determine the type of middleware will
verify // It is an undefined function which used to verify the middleware parsing.
`;
```Application`````;
Properties```app.local`;
`app.locals.title = "My Cheatsheet";
console.dir(app.locals.title)`;
app.mountpath`;``app.mountpath``const admin = express()`;