---
title: "Discussion on \"Middleware in RedwoodJS\" | Hashnode"
description: "Discussion on \"Middleware in RedwoodJS\". An Introduction to Middleware\nWhat is middleware?\nIt's a function that runs before your request is routed and rendered – giving you the ability to:\na) Intercept and modify the response\nb) Enrich the request “context” (e.g. add auth details)\nc) Enrich..."
url: "https://hashnode.com/posts/middleware-in-redwoodjs/663e6a99f3850b46669fbde8"
---

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

Discussion

# [Middleware in RedwoodJS](https://redwoodjs.com/middleware-in-redwoodjs?utm_source=hashnode&utm_medium=feed)

An Introduction to Middleware What is middleware? It's a function that runs before your request is routed and rendered – giving you the ability to: a) Intercept and modify the response b) Enrich the request “context” (e.g. add auth details) c) Enrich...

May 10, 2024 · 5 min read · redwoodjs.com  
Updated May 13, 2024  
Read the article

-   [#redwoodjs](https://hashnode.com/tag/redwoodjs)
-   [#middleware](https://hashnode.com/tag/middleware)

## Written by

[Danny Choudhury](https://hashnode.com/@dac09)

@dac09

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

@redwoodjs Core Team | ♥️ Open Source

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
