How to implement routing in express.js?
    1/2
    You define routing using methods of the Express app object that correspond to HTTP methods; for example, app.get() to handle GET requests and app.post to handle POST requests.
    All available methods are:
    • get
    • post
    • put
    • delete
    • head
    • options
    • checkout
    • copy
    • lock
    • merge
    • mkactivity
    • mkcol
    • move
    • m-search
    • notify
    • patch
    • purge
    • report
    • search
    • subscribe
    • trace
    • unlock
    • unsubscribe