Skip to content

[FEATURE REQUEST]: Middleware for a specific route. #38

@moshOntong-IT

Description

@moshOntong-IT

The package includes the Middleware feature, which currently applies to all routes. However, it would be beneficial if AppExpress could add middleware to specific routes only. Perhaps introducing a next parameter in the middleware function could be also a good idea. For instance, the Express Package utilizes this next parameter:

const express = require('express')
const app = express()

app.use((req, res, next) => {
  console.log('Time:', Date.now())
  next()
})

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions