oliverwebr / students-app-live

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is app.use ?

app:

  • .get
  • .post
  • .delete
  • .put

app.METHOD(URL, ControllerFunction aka RouteHandler)

When some one performs a request with METHOD to URL run ControllerFunction with Request and Response objects

A Controller ends the request response cycle (sends response)

Still what is app.use ?

.use defines middlewares

A middleware executes on request but does not end the response

About


Languages

Language:JavaScript 100.0%