---
title: "Discussion on \"What is Middleware in Express and How It Works\" | Hashnode"
description: "Discussion on \"What is Middleware in Express and How It Works\". So you've been building Express apps. You've got your routes set up, your server is running, and everything feels fine. Then someone says, \"add some authentication to this\" or \"log all incoming reques"
url: "https://hashnode.com/posts/what-is-middleware-in-express-and-how-it-works/69ff3955f239332df4b512c0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What is Middleware in Express and How It Works](https://amirana.hashnode.dev/what-is-middleware-in-express-and-how-it-works?utm_source=hashnode&utm_medium=feed)

So you've been building Express apps. You've got your routes set up, your server is running, and everything feels fine. Then someone says, "add some authentication to this" or "log all incoming reques

May 9 · 10 min read · amirana.hashnode.dev  
Read the article

-   [#expressjs](https://hashnode.com/tag/expressjs)
-   [#middleware](https://hashnode.com/tag/middleware)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#chaiaurcode](https://hashnode.com/tag/chaiaurcode)

## Written by

[Ami Rana](https://hashnode.com/@amirana)

@amirana · India

  
[View profile](https://hashnode.com/@amirana)

Frontend Developer → Transitioning into Full-Stack | UX Design Background

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
