<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Middleware on Scholion</title><link>https://scholion.thluiz.com/tags/middleware/</link><description>Recent content in Middleware on Scholion</description><generator>Hugo -- gohugo.io</generator><language>pt-BR</language><copyright>© 2026</copyright><lastBuildDate>Thu, 22 Oct 2026 02:56:08 +0100</lastBuildDate><atom:link href="https://scholion.thluiz.com/tags/middleware/index.xml" rel="self" type="application/rss+xml"/><item><title>Using Express.js Routes for Promise-based Error Handling</title><link>https://scholion.thluiz.com/notes/using-express-js-routes-for-promise-based-error-handling/</link><pubDate>Wed, 04 Aug 2021 12:25:27 -0300</pubDate><guid>https://scholion.thluiz.com/notes/using-express-js-routes-for-promise-based-error-handling/</guid><description>The article compares three ways to handle promise-based responses and errors in Express routes, then proposes a promise middleware that centralizes response handling while still allowing special cases like redirects and streams.</description></item><item><title>Building a Node.js/TypeScript REST API, Part 2: Models, Middleware, and Services</title><link>https://scholion.thluiz.com/notes/building-a-node-js-typescript-rest-api-part-2/</link><pubDate>Thu, 28 Jan 2021 12:41:09 -0300</pubDate><guid>https://scholion.thluiz.com/notes/building-a-node-js-typescript-rest-api-part-2/</guid><description>The article organizes a users REST API into DTOs, DAOs, services, controllers, and middleware, using an in-memory store to show CRUD flow, validation, and route composition.</description></item></channel></rss>