Middleware

With Liten, you can use before route middleware, before router middleware, and after router middleware. Below are a few code examples of each.

Before Route Middleware

Before Router Middleware

After Router Middleware

Note: If the route handling function has exit()ed the run callback won’t be run. 

Last Modified: Mar 31, 2015 @ 4:40 PM

Liten Framework Forums Middleware

This topic contains 0 replies, has 1 voice, and was last updated by  parkerj 3 years, 1 month ago.

You must be logged in to reply to this topic.