DEV Community

SrinjaTheNinja
SrinjaTheNinja

Posted on

Cannot understand " read " is Middleware or not?

In a middleware chain last function give response. but I want to know that is this last function counted as a middleware or as a normal function which give response to a particular request?

Example--

Router.get("/catgory/:categoryId",isAuth,isAdmin,read);

Will "read" counted to be as a middleware ?

Top comments (0)