Shell middleware code example
Example 1: middleware
//just for me lol... pls don't delete
"middleware" - code that runs before the final route call back.
They are in the middle of the beginning of the route and the
callback function.
Example 2: middleware
app.use("/", (req, res, next) => {
console.log("I am a middleaware")
next()
})
Example 3: middleware
, PostController::class)->middleware('auth:api');